	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdcnew_set_pio_mode
_pdcnew_set_pio_mode:                   ## @pdcnew_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%r14), %edi
	callq	_to_pci_dev
	movl	(%rbx), %ebx
	movq	%rax, %rdi
	callq	_max_dma_rate
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.2:
	shll	$3, %ebx
	andl	$8, %ebx
	leaq	12(%rbx), %rsi
	movq	_pio_timings@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	shlq	$2, %r15
	leaq	(%r15,%r15,2), %r15
	movl	8(%rax,%r15), %edx
	movq	%r14, %rdi
	callq	_set_indexed_reg
	leaq	13(%rbx), %rsi
	movq	(%r12), %rax
	movl	4(%rax,%r15), %edx
	movq	%r14, %rdi
	callq	_set_indexed_reg
	orq	$19, %rbx
	movq	(%r12), %rax
	movl	(%rax,%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_indexed_reg                ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pio_timings,8,3                ## @pio_timings
	.no_dead_strip	_pdcnew_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 pdcnew_set_pio_mode
_pdcnew_set_pio_mode:                   ; @pdcnew_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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x19]
	bl	_to_pci_dev
	ldr	w21, [x21]
	bl	_max_dma_rate
	cmp	w0, #4
	b.ne	LBB0_2
; %bb.1:
	lsl	w8, w21, #3
	and	x21, x8, #0x8
Lloh0:
	adrp	x22, _pio_timings@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pio_timings@GOTPAGEOFF]
	add	x1, x21, #12
	ldr	x8, [x22]
	add	x9, x20, x20, lsl #1
	lsl	x20, x9, #2
	add	x8, x8, x20
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_set_indexed_reg
	add	x1, x21, #13
	ldr	x8, [x22]
	add	x8, x8, x20
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_set_indexed_reg
	mov	w8, #19
	orr	x1, x21, x8
	ldr	x8, [x22]
	ldr	w2, [x8, x20]
	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	_set_indexed_reg
LBB0_2:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pio_timings,8,3                ; @pio_timings
	.no_dead_strip	_pdcnew_set_pio_mode
.subsections_via_symbols
