	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atahpa_proc_resp
_atahpa_proc_resp:                      ## @atahpa_proc_resp
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -28(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-28(%rbp), %r8
	leaq	-44(%rbp), %r9
	callq	_get_ata_status
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	movq	_arglist@GOTPCREL(%rip), %rax
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_CAM_ESF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAM_EPF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cam_error_print
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_ATA_STATUS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -32(%rbp)
	je	LBB0_12
## %bb.6:
	movq	_arglist@GOTPCREL(%rip), %rax
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_CAM_ESF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAM_EPF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cam_error_print
LBB0_8:
	movq	_ATA_ERROR_ID_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_warnx
	movl	$1, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_15
## %bb.13:
	andl	$-5, %eax
	movl	$1, %ebx
	cmpl	$2, %eax
	je	LBB0_15
## %bb.14:
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_10:
	movl	$1, %ebx
	testq	%r14, %r14
	jne	LBB0_15
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_warnx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_arglist,4,2                    ## @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ## @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ## @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ## @CAM_EPF_ALL
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get ATA command status"

	.comm	_ATA_STATUS_ERROR,4,2           ## @ATA_STATUS_ERROR
	.comm	_ATA_ERROR_ID_NOT_FOUND,4,2     ## @ATA_ERROR_ID_NOT_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"Max address has already been set since last power-on or hardware reset"

L_.str.2:                               ## @.str.2
	.asciz	"Command failed with ATA error"

	.no_dead_strip	_atahpa_proc_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atahpa_proc_resp
_atahpa_proc_resp:                      ; @atahpa_proc_resp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	add	x2, sp, #28
	add	x3, sp, #16
	add	x4, sp, #12
	add	x5, sp, #24
	add	x6, sp, #20
	bl	_get_ata_status
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _arglist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _arglist@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_cam_error_print
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w8, [sp, #20]
Lloh17:
	adrp	x9, _ATA_STATUS_ERROR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATA_STATUS_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.5:
Lloh20:
	adrp	x8, _arglist@GOTPAGE
Lloh21:
	ldr	x8, [x8, _arglist@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh26:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_cam_error_print
LBB0_7:
	ldr	w8, [sp, #28]
Lloh35:
	adrp	x9, _ATA_ERROR_ID_NOT_FOUND@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ATA_ERROR_ID_NOT_FOUND@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.8:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_warnx
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	cbz	x19, LBB0_17
; %bb.13:
	and	w8, w0, #0xfffffffb
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.14:
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_11
LBB0_15:
	cbnz	x19, LBB0_10
; %bb.16:
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_17:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_arglist,4,2                    ; @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ; @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ; @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ; @CAM_EPF_ALL
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get ATA command status"

	.comm	_ATA_STATUS_ERROR,4,2           ; @ATA_STATUS_ERROR
	.comm	_ATA_ERROR_ID_NOT_FOUND,4,2     ; @ATA_ERROR_ID_NOT_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"Max address has already been set since last power-on or hardware reset"

l_.str.2:                               ; @.str.2
	.asciz	"Command failed with ATA error"

	.no_dead_strip	_atahpa_proc_resp
.subsections_via_symbols
