	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ht6560b_set_pio_mode
_ht6560b_set_pio_mode:                  ## @ht6560b_set_pio_mode
	.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, %rbx
	movl	(%rsi), %esi
	movq	_XFER_PIO_0@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movl	%esi, %eax
	andl	$-2, %eax
	cmpl	$8, %eax
	jne	LBB0_2
## %bb.1:
	andl	$1, %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ht_set_prefetch                ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_ht_pio2timings
	movl	%eax, %r14d
	movq	_ht6560b_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_ide_get_drivedata
	andl	$65280, %eax                    ## imm = 0xFF00
	movslq	%r14d, %rsi
	orq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_ide_set_drivedata
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XFER_PIO_0,4,2                 ## @XFER_PIO_0
	.comm	_ht6560b_lock,4,2               ## @ht6560b_lock
	.no_dead_strip	_ht6560b_set_pio_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ht6560b_set_pio_mode
_ht6560b_set_pio_mode:                  ; @ht6560b_set_pio_mode
	.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	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _XFER_PIO_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFER_PIO_0@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w1, w8, w9
	and	w8, w1, #0xfffffffe
	cmp	w8, #8
	b.ne	LBB0_2
; %bb.1:
	and	w1, w1, #0x1
	mov	x0, x19
	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	_ht_set_prefetch
LBB0_2:
	mov	x0, x19
	bl	_ht_pio2timings
	mov	x20, x0
Lloh3:
	adrp	x21, _ht6560b_lock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ht6560b_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ide_get_drivedata
	and	x8, x0, #0xff00
	sxtw	x9, w20
	orr	x1, x8, x9
	mov	x0, x19
	bl	_ide_set_drivedata
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XFER_PIO_0,4,2                 ; @XFER_PIO_0
	.comm	_ht6560b_lock,4,2               ; @ht6560b_lock
	.no_dead_strip	_ht6560b_set_pio_mode
.subsections_via_symbols
