	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_oxnas_hostportbusy
_sata_oxnas_hostportbusy:               ## @sata_oxnas_hostportbusy
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_SATA_COMMAND@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread32
	movl	%eax, %ecx
	movq	_CMD_CORE_BUSY@GOTPCREL(%rip), %r15
	movl	$1, %eax
	testl	%ecx, (%r15)
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpl	$2, (%rbx)
	jl	LBB0_3
## %bb.2:
	movq	_PORT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_ioread32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r15)
	setne	%al
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SATA_COMMAND,8,3               ## @SATA_COMMAND
	.comm	_CMD_CORE_BUSY,4,2              ## @CMD_CORE_BUSY
	.comm	_PORT_SIZE,8,3                  ## @PORT_SIZE
	.no_dead_strip	_sata_oxnas_hostportbusy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_oxnas_hostportbusy
_sata_oxnas_hostportbusy:               ; @sata_oxnas_hostportbusy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x19, _SATA_COMMAND@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SATA_COMMAND@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_ioread32
Lloh2:
	adrp	x20, _CMD_CORE_BUSY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CMD_CORE_BUSY@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
Lloh4:
	adrp	x9, _PORT_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PORT_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x10, [x19]
	add	x8, x9, x8
	add	x0, x8, x10
	bl	_ioread32
	ldr	w8, [x20]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SATA_COMMAND,8,3               ; @SATA_COMMAND
	.comm	_CMD_CORE_BUSY,4,2              ; @CMD_CORE_BUSY
	.comm	_PORT_SIZE,8,3                  ; @PORT_SIZE
	.no_dead_strip	_sata_oxnas_hostportbusy
.subsections_via_symbols
