	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_force_xfermask
_ata_force_xfermask:                    ## @ata_force_xfermask
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	movl	(%rdi), %r15d
	movl	(%r14), %ebx
	leal	(%rbx,%r15), %r12d
	callq	_ata_is_host_link
	testq	%rax, %rax
	leal	15(%rbx,%r15), %eax
	cmovel	%r12d, %eax
	movq	_ata_force_tbl_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.1:
	movq	_ata_force_tbl@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r15
	incq	%rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r15,%rbx), %edi
	testl	%edi, %edi
	jne	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	decq	%rcx
	cmpq	$1, %rcx
	jbe	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rcx), %ebx
	shlq	$4, %rbx
	movl	(%r15,%rbx), %edx
	cmpl	$-1, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r14), %rsi
	movq	8(%rsi), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15,%rbx), %edx
	cmpl	$-1, %edx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %edx
	jne	LBB0_14
	jmp	LBB0_7
LBB0_8:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_ata_unpack_xfermask
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 8(%r14)
	jmp	LBB0_13
LBB0_10:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	$0, 8(%r14)
	movq	%rax, 16(%r14)
	jmp	LBB0_13
LBB0_12:
	leaq	8(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	-56(%rbp), %rax
	movq	%rax, 24(%r14)
LBB0_13:
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15,%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ata_dev_printk
LBB0_15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ata_force_tbl_size,4,2         ## @ata_force_tbl_size
	.comm	_ata_force_tbl,8,3              ## @ata_force_tbl
	.comm	_KERN_NOTICE,4,2                ## @KERN_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FORCE: xfer_mask set to %s\n"

	.no_dead_strip	_ata_force_xfermask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_force_xfermask
_ata_force_xfermask:                    ; @ata_force_xfermask
	.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, x0
	ldr	x0, [x0, #32]
	ldr	w8, [x0]
	ldr	w9, [x19]
	add	w22, w9, w8
	bl	_ata_is_host_link
	add	w8, w22, #15
	cmp	x0, #0
	csel	w8, w22, w8, eq
Lloh0:
	adrp	x9, _ata_force_tbl_size@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ata_force_tbl_size@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.1:
Lloh3:
	adrp	x10, _ata_force_tbl@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ata_force_tbl@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x10]
	add	x9, x9, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x9, #1
	cmp	x9, #1
	b.ls	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w9, #2
	lsl	x10, x21, #4
	ldr	w10, [x20, x10]
	cmn	w10, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x19, #32]
	ldr	x11, [x11, #8]
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x20, x21, lsl #4
	ldr	w11, [x10, #4]
	cmn	w11, #1
	ccmp	w11, w22, #4, ne
	ccmp	w11, w8, #4, ne
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x10, #12]
	cbz	w0, LBB0_2
; %bb.7:
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_ata_unpack_xfermask
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.8:
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_9:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_11
; %bb.10:
	stp	xzr, x8, [x19, #8]
	b	LBB0_12
LBB0_11:
	add	x8, x19, #8
	stp	xzr, xzr, [x8]
	ldr	x8, [sp, #24]
	str	x8, [x19, #24]
LBB0_12:
Lloh6:
	adrp	x8, _KERN_NOTICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_NOTICE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x8, x20, x21, lsl #4
	ldr	w3, [x8, #8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ata_force_tbl_size,4,2         ; @ata_force_tbl_size
	.comm	_ata_force_tbl,8,3              ; @ata_force_tbl
	.comm	_KERN_NOTICE,4,2                ; @KERN_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FORCE: xfer_mask set to %s\n"

	.no_dead_strip	_ata_force_xfermask
.subsections_via_symbols
