	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ataama
_ataama:                                ## @ataama
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_ATA_AMA_ACTION_PRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$112, %eax
	jg	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$102, %eax
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movl	$129, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$113, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$115, %eax
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoumax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	incl	%r13d
	movl	$128, %r14d
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_9:
	cmpl	$2, %r13d
	jl	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_11:
	leaq	-96(%rbp), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_cgd
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	callq	_warnx
LBB0_14:
	movl	$1, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, %rdi
	callq	_cam_getccb
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %r12
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_ata_do_identify
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_cam_freeccb
	jmp	LBB0_14
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_20:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.21:
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rdi
	callq	_ata_print_ident
	movq	%rbx, %rdi
	callq	_camxferrate
LBB0_22:
	movq	_ATA_AMA_ACTION_PRINT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_25
## %bb.23:
	movq	%r12, %rcx
	movq	$0, -64(%rbp)
	movq	-48(%rbp), %rdi
	movq	_ATA_SUPPORT_AMAX_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, (%rdi)
	je	LBB0_33
## %bb.24:
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%rcx, %rbx
	callq	_ata_get_native_max
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi
	jmp	LBB0_34
LBB0_25:
	movq	-48(%rbp), %rax
	movq	_ATA_SUPPORT_AMAX_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_35
## %bb.26:
	cmpl	$129, %r14d
	je	LBB0_36
## %bb.27:
	cmpl	$128, %r14d
	jne	LBB0_38
## %bb.28:
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_ata_get_native_max
	movq	%r12, %r14
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.29:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_ataama_set
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.30:
	xorl	%r12d, %r12d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_ata_do_identify
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movl	$1, %edx
	callq	_ataama_print
LBB0_32:
	movq	%rbx, %rdi
	callq	_reprobe
	jmp	LBB0_40
LBB0_33:
	xorl	%esi, %esi
	movq	%rcx, %rbx
LBB0_34:
	movl	$1, %edx
	callq	_ataama_print
	movq	%rbx, %rdi
	jmp	LBB0_41
LBB0_35:
	leaq	L_.str.4(%rip), %rdi
	callq	_warnx
	movq	%r12, %rdi
	callq	_cam_freeccb
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_14
LBB0_36:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_ataama_freeze
	movq	%r12, %r14
	movl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	orl	%r12d, %eax
	jne	LBB0_40
## %bb.37:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_39
LBB0_38:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	%r12, %r14
LBB0_39:
	xorl	%r12d, %r12d
LBB0_40:
	movq	%r14, %rdi
LBB0_41:
	callq	_cam_freeccb
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_AMA_ACTION_PRINT,4,2       ## @ATA_AMA_ACTION_PRINT
	.comm	_optarg,4,2                     ## @optarg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many AMA actions specified"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't get CGD"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't allocate CCB"

L_.str.3:                               ## @.str.3
	.asciz	"%s%d: "

	.comm	_ATA_SUPPORT_AMAX_ADDR,4,2      ## @ATA_SUPPORT_AMAX_ADDR
L_.str.4:                               ## @.str.4
	.asciz	"Accessible Max Address is not supported by this device"

L_.str.6:                               ## @.str.6
	.asciz	"Option currently not supported"

L_str:                                  ## @str
	.asciz	"Accessible Max Address has been frozen"

	.no_dead_strip	_ataama
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ataama
_ataama:                                ; @ataama
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x24, x4
	mov	x25, x3
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x19, x1
	mov	x28, x0
	mov	w26, #0
	mov	w20, #0
	mov	x23, #0
Lloh0:
	adrp	x8, _ATA_AMA_ACTION_PRINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_AMA_ACTION_PRINT@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x21, _optarg@GOTPAGE
Lloh4:
	ldr	x21, [x21, _optarg@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	bl	_getopt
	cmp	w0, #112
	b.gt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #102
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #1
	mov	w27, #129
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #113
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #115
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoumax
	mov	x23, x0
	add	w20, w20, #1
	mov	w27, #128
	b	LBB0_1
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w26, w26, #1
	b	LBB0_1
LBB0_9:
	cmp	w20, #2
	b.lt	LBB0_11
; %bb.10:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	add	x1, sp, #32
	mov	x20, x28
	mov	x0, x28
	bl	_get_cgd
	cbz	x0, LBB0_16
; %bb.12:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	bl	_warnx
LBB0_14:
	mov	w24, #1
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	mov	x0, x20
	bl	_cam_getccb
	cbz	x0, LBB0_19
; %bb.17:
	mov	x22, x0
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x19
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
	mov	x2, x28
	mov	x3, x22
	bl	_ata_do_identify
	cbz	w0, LBB0_20
; %bb.18:
	mov	x0, x22
	bl	_cam_freeccb
	b	LBB0_14
LBB0_19:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_20:
	cbnz	w26, LBB0_22
; %bb.21:
	ldr	x8, [x20]
	ldr	w9, [x20, #8]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #40]
	bl	_ata_print_ident
	mov	x0, x20
	bl	_camxferrate
LBB0_22:
Lloh13:
	adrp	x8, _ATA_AMA_ACTION_PRINT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATA_AMA_ACTION_PRINT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_25
; %bb.23:
	str	xzr, [sp, #24]
	ldr	x0, [sp, #40]
	ldr	w8, [x0]
Lloh16:
	adrp	x9, _ATA_SUPPORT_AMAX_ADDR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ATA_SUPPORT_AMAX_ADDR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.24:
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	x3, x22
	bl	_ata_get_native_max
	ldr	x0, [sp, #40]
	ldr	x1, [sp, #24]
	b	LBB0_33
LBB0_25:
	ldr	x8, [sp, #40]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ATA_SUPPORT_AMAX_ADDR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ATA_SUPPORT_AMAX_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.26:
	cmp	w27, #129
	b.eq	LBB0_35
; %bb.27:
	cmp	w27, #128
	b.ne	LBB0_37
; %bb.28:
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	x3, x22
	bl	_ata_get_native_max
	mov	x24, x0
	cbnz	w0, LBB0_39
; %bb.29:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	x3, x22
	mov	x4, x23
	bl	_ataama_set
	mov	x24, x0
	cbnz	w0, LBB0_39
; %bb.30:
	cbz	w26, LBB0_40
; %bb.31:
	mov	w24, #0
	b	LBB0_41
LBB0_32:
	mov	x1, #0
LBB0_33:
	mov	w2, #1
	bl	_ataama_print
	mov	x0, x22
	bl	_cam_freeccb
	ldr	x0, [sp, #40]
	bl	_free
	mov	w24, #0
	b	LBB0_15
LBB0_34:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	mov	x0, x22
	bl	_cam_freeccb
	ldr	x0, [sp, #40]
	bl	_free
	b	LBB0_14
LBB0_35:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	x3, x22
	bl	_ataama_freeze
	mov	x24, x0
	orr	w8, w0, w26
	cbnz	w8, LBB0_39
; %bb.36:
Lloh24:
	adrp	x0, l_str@PAGE
Lloh25:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_38
LBB0_37:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_38:
	mov	w24, #0
LBB0_39:
	mov	x0, x22
	bl	_cam_freeccb
	ldr	x0, [sp, #40]
	bl	_free
	b	LBB0_15
LBB0_40:
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	mov	x3, x22
	bl	_ata_do_identify
	mov	x24, x0
	ldr	x0, [sp, #40]
	ldr	x1, [sp, #24]
	mov	w2, #1
	bl	_ataama_print
LBB0_41:
	mov	x0, x20
	bl	_reprobe
	b	LBB0_39
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_AMA_ACTION_PRINT,4,2       ; @ATA_AMA_ACTION_PRINT
	.comm	_optarg,4,2                     ; @optarg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many AMA actions specified"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't get CGD"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't allocate CCB"

l_.str.3:                               ; @.str.3
	.asciz	"%s%d: "

	.comm	_ATA_SUPPORT_AMAX_ADDR,4,2      ; @ATA_SUPPORT_AMAX_ADDR
l_.str.4:                               ; @.str.4
	.asciz	"Accessible Max Address is not supported by this device"

l_.str.6:                               ; @.str.6
	.asciz	"Option currently not supported"

l_str:                                  ; @str
	.asciz	"Accessible Max Address has been frozen"

	.no_dead_strip	_ataama
.subsections_via_symbols
