	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ht_set_prefetch
_ht_set_prefetch:                       ## @ht_set_prefetch
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_HT_PREFETCH_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$8, %ebx
	movq	_ht6560b_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_ide_get_drivedata
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movslq	%ebx, %rcx
	orq	%rcx, %rax
	movq	_IDE_DFLAG_NO_UNMASK@GOTPCREL(%rip), %rcx
	movl	4(%r15), %edx
	orl	(%rcx), %edx
	movq	_IDE_DFLAG_UNMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%edx, %ecx
	movl	%ecx, 4(%r15)
	jmp	LBB0_3
LBB0_2:
	notl	%ebx
	movslq	%ebx, %rcx
	andq	%rcx, %rax
	movq	_IDE_DFLAG_NO_UNMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 4(%r15)
LBB0_3:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ide_set_drivedata
	movq	_ht6560b_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_PREFETCH_MODE,4,2           ## @HT_PREFETCH_MODE
	.comm	_ht6560b_lock,4,2               ## @ht6560b_lock
	.comm	_IDE_DFLAG_NO_UNMASK,4,2        ## @IDE_DFLAG_NO_UNMASK
	.comm	_IDE_DFLAG_UNMASK,4,2           ## @IDE_DFLAG_UNMASK
	.no_dead_strip	_ht_set_prefetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ht_set_prefetch
_ht_set_prefetch:                       ; @ht_set_prefetch
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HT_PREFETCH_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HT_PREFETCH_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w21, w8, #8
Lloh3:
	adrp	x0, _ht6560b_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ht6560b_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ide_get_drivedata
	cbz	x20, LBB0_2
; %bb.1:
	sxtw	x8, w21
	orr	x1, x0, x8
Lloh5:
	adrp	x8, _IDE_DFLAG_NO_UNMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDE_DFLAG_NO_UNMASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _IDE_DFLAG_UNMASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IDE_DFLAG_UNMASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w8, w8, w9
	b	LBB0_3
LBB0_2:
	mvn	w8, w21
	sxtw	x8, w8
	and	x1, x0, x8
Lloh11:
	adrp	x8, _IDE_DFLAG_NO_UNMASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IDE_DFLAG_NO_UNMASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_ide_set_drivedata
Lloh14:
	adrp	x0, _ht6560b_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _ht6560b_lock@GOTPAGEOFF]
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_PREFETCH_MODE,4,2           ; @HT_PREFETCH_MODE
	.comm	_ht6560b_lock,4,2               ; @ht6560b_lock
	.comm	_IDE_DFLAG_NO_UNMASK,4,2        ; @IDE_DFLAG_NO_UNMASK
	.comm	_IDE_DFLAG_UNMASK,4,2           ; @IDE_DFLAG_UNMASK
	.no_dead_strip	_ht_set_prefetch
.subsections_via_symbols
