	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_check_collision
_fsl_sata_check_collision:              ## @fsl_sata_check_collision
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rsi), %rdx
	movq	8(%rsi), %rcx
	movq	_XPT_ATA_IO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_5
## %bb.1:
	movq	_CAM_ATAIO_FPDMA@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_5
## %bb.2:
	movl	(%rdi), %esi
	movq	40(%rdi), %rax
	movb	$16, %cl
	subb	(%rax,%rdx,4), %cl
	notl	%esi
	shll	%cl, %esi
	movl	$1, %eax
	testw	%si, %si
	je	LBB0_11
## %bb.3:
	movq	8(%rdi), %rcx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_8
## %bb.4:
	movq	16(%rdi), %rcx
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_8
LBB0_11:
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_7
## %bb.6:
	movq	16(%rdi), %r8
	movl	$1, %eax
	cmpq	$0, (%r8,%rdx,8)
	jne	LBB0_11
LBB0_7:
	cmpq	%rsi, %rcx
	jne	LBB0_10
LBB0_8:
	movq	_CAM_ATAIO_CONTROL@GOTPCREL(%rip), %rax
	movq	_CAM_ATAIO_NEEDRESULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%edx, %ecx
	je	LBB0_10
## %bb.9:
	movl	$1, %eax
	cmpq	$0, 24(%rdi)
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	cmpq	$0, 32(%rdi)
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPT_ATA_IO,8,3                 ## @XPT_ATA_IO
	.comm	_CAM_ATAIO_FPDMA,4,2            ## @CAM_ATAIO_FPDMA
	.comm	_CAM_ATAIO_CONTROL,4,2          ## @CAM_ATAIO_CONTROL
	.comm	_CAM_ATAIO_NEEDRESULT,4,2       ## @CAM_ATAIO_NEEDRESULT
	.no_dead_strip	_fsl_sata_check_collision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_check_collision
_fsl_sata_check_collision:              ; @fsl_sata_check_collision
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x1]
	ldr	x9, [x1, #8]
Lloh0:
	adrp	x10, _XPT_ATA_IO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _XPT_ATA_IO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x11, _CAM_ATAIO_FPDMA@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CAM_ATAIO_FPDMA@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w9, [x0]
	mvn	w9, w9
	ldr	x10, [x0, #40]
	ldr	w10, [x10, x8, lsl #2]
	mov	w11, #16
	sub	w10, w11, w10
	lsl	w9, w9, w10
	tst	w9, #0xffff
	b.eq	LBB0_10
; %bb.3:
	ldr	x9, [x0, #8]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_8
; %bb.4:
	ldr	x9, [x0, #16]
	ldr	x9, [x9, x8, lsl #3]
	cbnz	x9, LBB0_8
	b	LBB0_10
LBB0_5:
	ldr	x11, [x0, #8]
	ldr	x11, [x11, x8, lsl #3]
	cbz	x11, LBB0_7
; %bb.6:
	ldr	x11, [x0, #16]
	ldr	x11, [x11, x8, lsl #3]
	cbnz	x11, LBB0_10
LBB0_7:
	cmp	x9, x10
	b.ne	LBB0_11
LBB0_8:
Lloh6:
	adrp	x9, _CAM_ATAIO_CONTROL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAM_ATAIO_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CAM_ATAIO_NEEDRESULT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CAM_ATAIO_NEEDRESULT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_11
LBB0_10:
	mov	w0, #1
	ret
LBB0_11:
	ldr	x8, [x0, #32]
	cmp	x8, #0
	cset	w0, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XPT_ATA_IO,8,3                 ; @XPT_ATA_IO
	.comm	_CAM_ATAIO_FPDMA,4,2            ; @CAM_ATAIO_FPDMA
	.comm	_CAM_ATAIO_CONTROL,4,2          ; @CAM_ATAIO_CONTROL
	.comm	_CAM_ATAIO_NEEDRESULT,4,2       ; @CAM_ATAIO_NEEDRESULT
	.no_dead_strip	_fsl_sata_check_collision
.subsections_via_symbols
