	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_read_native_max
_ata_read_native_max:                   ## @ata_read_native_max
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ATA_SUPPORT_ADDRESS48@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	xorl	%r11d, %r11d
	andl	(%r8), %r10d
	movq	_AP_EXTEND@GOTPCREL(%rip), %rbx
	cmovnel	(%rbx), %r11d
	movq	_ATA_READ_NATIVE_MAX_ADDRESS48@GOTPCREL(%rip), %rbx
	cmoveq	_ATA_READ_NATIVE_MAX_ADDRESS@GOTPCREL(%rip), %rbx
	movq	_AP_PROTO_NON_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %r11d
	movq	%r9, %r14
	movq	%rcx, %r15
	movl	%esi, %r8d
	movq	%rdi, %r12
	movl	(%rbx), %r13d
	movq	_CAM_DIR_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AP_FLAG_CHK_COND@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	testl	%edx, %edx
	movl	$5000, %eax                     ## imm = 0x1388
	cmovnel	%edx, %eax
	subq	$8, %rsp
	movq	%r15, %rsi
	movl	%r8d, %edx
	movl	%r11d, %r8d
	pushq	%r10
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%r13
	pushq	%rbx
	callq	_ata_do_cmd
	addq	$80, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atahpa_proc_resp               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_SUPPORT_ADDRESS48,4,2      ## @ATA_SUPPORT_ADDRESS48
	.comm	_AP_PROTO_NON_DATA,4,2          ## @AP_PROTO_NON_DATA
	.comm	_ATA_READ_NATIVE_MAX_ADDRESS48,4,2 ## @ATA_READ_NATIVE_MAX_ADDRESS48
	.comm	_AP_EXTEND,4,2                  ## @AP_EXTEND
	.comm	_ATA_READ_NATIVE_MAX_ADDRESS,4,2 ## @ATA_READ_NATIVE_MAX_ADDRESS
	.comm	_CAM_DIR_NONE,4,2               ## @CAM_DIR_NONE
	.comm	_AP_FLAG_CHK_COND,4,2           ## @AP_FLAG_CHK_COND
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.no_dead_strip	_ata_read_native_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_read_native_max
_ata_read_native_max:                   ; @ata_read_native_max
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	mov	x20, x3
	mov	x8, x1
	mov	x21, x0
	ldr	w9, [x4]
Lloh0:
	adrp	x10, _ATA_SUPPORT_ADDRESS48@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATA_SUPPORT_ADDRESS48@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _AP_PROTO_NON_DATA@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AP_PROTO_NON_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _AP_EXTEND@GOTPAGE
Lloh7:
	ldr	x12, [x12, _AP_EXTEND@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	ands	w9, w10, w9
	csel	w10, wzr, w12, eq
	orr	w4, w10, w11
Lloh9:
	adrp	x10, _ATA_READ_NATIVE_MAX_ADDRESS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ATA_READ_NATIVE_MAX_ADDRESS@GOTPAGEOFF]
Lloh11:
	adrp	x11, _ATA_READ_NATIVE_MAX_ADDRESS48@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ATA_READ_NATIVE_MAX_ADDRESS48@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	ldr	w7, [x10]
Lloh13:
	adrp	x10, _CAM_DIR_NONE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CAM_DIR_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x10]
Lloh16:
	adrp	x10, _AP_FLAG_CHK_COND@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AP_FLAG_CHK_COND@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x10]
Lloh19:
	adrp	x10, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x10]
	mov	w10, #5000
	cmp	w2, #0
	csel	w10, w10, w2, eq
	stp	w10, w9, [sp, #28]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	x1, x20
	mov	x2, x8
	bl	_ata_do_cmd
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_atahpa_proc_resp
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_SUPPORT_ADDRESS48,4,2      ; @ATA_SUPPORT_ADDRESS48
	.comm	_AP_PROTO_NON_DATA,4,2          ; @AP_PROTO_NON_DATA
	.comm	_ATA_READ_NATIVE_MAX_ADDRESS48,4,2 ; @ATA_READ_NATIVE_MAX_ADDRESS48
	.comm	_AP_EXTEND,4,2                  ; @AP_EXTEND
	.comm	_ATA_READ_NATIVE_MAX_ADDRESS,4,2 ; @ATA_READ_NATIVE_MAX_ADDRESS
	.comm	_CAM_DIR_NONE,4,2               ; @CAM_DIR_NONE
	.comm	_AP_FLAG_CHK_COND,4,2           ; @AP_FLAG_CHK_COND
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.no_dead_strip	_ata_read_native_max
.subsections_via_symbols
