	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_force_horkage
_ata_force_horkage:                     ## @ata_force_horkage
	.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	%rdi, %r15
	movq	8(%rdi), %rdi
	movl	(%rdi), %r14d
	movl	(%r15), %r12d
	leal	(%r12,%r14), %ebx
	callq	_ata_is_host_link
	testq	%rax, %rax
	leal	15(%r12,%r14), %r11d
	cmovel	%ebx, %r11d
	movq	_ata_force_tbl_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.1:
	movl	%ebx, %r9d
	movl	$16, %r14d
	xorl	%r13d, %r13d
	movq	_ata_force_tbl@GOTPCREL(%rip), %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%r8d, %rax
	addq	$20, %r14
	cmpq	%rax, %r13
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movl	-16(%rcx,%r14), %edx
	cmpl	$-1, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rsi
	movq	8(%rsi), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-12(%rcx,%r14), %edx
	cmpl	$-1, %edx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r9d, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r11d, %edx
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	notl	%edi
	movl	-8(%rcx,%r14), %edx
	movl	-4(%rcx,%r14), %eax
	andl	%edx, %edi
	movl	%eax, %esi
	andl	%ebx, %esi
	orl	%edi, %esi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	%ebx, %edx
	notl	%eax
	andl	%edx, %eax
	movl	%eax, 4(%r15)
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx,%r14), %ecx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%r9d, %ebx
	movl	%r11d, %r15d
	callq	_ata_dev_printk
	movl	%r15d, %r11d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %r9d
	movq	_ata_force_tbl_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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: horkage modified (%s)\n"

	.no_dead_strip	_ata_force_horkage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_force_horkage
_ata_force_horkage:                     ; @ata_force_horkage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0]
	ldr	w9, [x19]
	add	w21, w9, w8
	bl	_ata_is_host_link
	add	w8, w21, #15
	cmp	x0, #0
	csel	w22, w21, w8, eq
Lloh0:
	adrp	x23, _ata_force_tbl_size@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ata_force_tbl_size@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x24, #0
	mov	x25, #0
Lloh2:
	adrp	x26, _ata_force_tbl@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ata_force_tbl@GOTPAGEOFF]
Lloh4:
	adrp	x27, _KERN_NOTICE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _KERN_NOTICE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x24, x24, #20
	cmp	x25, w8, sxtw
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	ldr	w10, [x9, x24]
	cmn	w10, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x19, #8]
	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, x9, x24
	ldr	w11, [x10, #4]
	cmn	w11, #1
	ccmp	w11, w21, #4, ne
	ccmp	w11, w22, #4, ne
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x19, #4]
	ldp	w12, w10, [x10, #8]
	bic	w13, w12, w11
	and	w14, w10, w11
	orr	w13, w13, w14
	cbz	w13, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w12, w11
	bic	w8, w8, w10
	str	w8, [x19, #4]
	ldr	w1, [x27]
	add	x8, x9, x24
	ldr	w3, [x8, #16]
	mov	x0, x19
	mov	x2, x20
	bl	_ata_dev_printk
	ldr	w8, [x23]
	b	LBB0_2
LBB0_8:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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: horkage modified (%s)\n"

	.no_dead_strip	_ata_force_horkage
.subsections_via_symbols
