	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc1200_set_piomode
_sc1200_set_piomode:                    ## @sc1200_set_piomode
	.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	$16, %rsp
	.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), %rax
	movl	(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movl	(%rbx), %ebx
	shll	$4, %ebx
	movslq	(%r15), %r12
	movq	_XFER_PIO_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%rax, %r12
	leal	68(%rbx), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	sarl	$31, -36(%rbp)
	xorl	%eax, %eax
	callq	_sc1200_clock
	addl	-36(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	4(%r15), %ecx
	leal	(%rbx,%rcx,8), %esi
	addl	$64, %esi
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	_sc1200_set_piomode.pio_timings(%rip), %rcx
	leaq	(%rcx,%rax,4), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r14, %rdi
	callq	_pci_write_config_dword
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @sc1200_set_piomode.pio_timings
_sc1200_set_piomode.pio_timings:
	.long	37234                           ## 0x9172
	.long	74097                           ## 0x12171
	.long	131200                          ## 0x20080
	.long	204816                          ## 0x32010
	.long	262160                          ## 0x40010
	.long	3509752178                      ## 0xd1329172
	.long	1897996657                      ## 0x71212171
	.long	807403648                       ## 0x30200080
	.long	537927696                       ## 0x20102010
	.long	1048592                         ## 0x100010
	.long	4205049075                      ## 0xfaa3f4f3
	.long	3258069682                      ## 0xc23232b2
	.long	1362166209                      ## 0x513101c1
	.long	824258849                       ## 0x31213121
	.long	270602273                       ## 0x10211021
	.long	4294246388                      ## 0xfff4fff4
	.long	4082324435                      ## 0xf35353d3
	.long	2168521457                      ## 0x814102f1
	.long	1110524465                      ## 0x42314231
	.long	288428337                       ## 0x11311131

	.comm	_XFER_PIO_0,4,2                 ## @XFER_PIO_0
	.no_dead_strip	_sc1200_set_piomode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc1200_set_piomode
_sc1200_set_piomode:                    ; @sc1200_set_piomode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_pci_dev
	mov	x21, x0
	ldr	w8, [x20]
	lsl	w20, w8, #4
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _XFER_PIO_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFER_PIO_0@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	w1, w20, #68
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	asr	w8, w8, #31
	str	w8, [sp, #12]
	bl	_sc1200_clock
	ldr	w8, [x19, #4]
	add	w8, w20, w8, lsl #3
	sub	w9, w22, w23
	ldr	w10, [sp, #12]
	add	w10, w10, w0
	str	w10, [sp, #12]
	add	w1, w8, #64
Lloh3:
	adrp	x8, _sc1200_set_piomode.pio_timings@PAGE
Lloh4:
	add	x8, x8, _sc1200_set_piomode.pio_timings@PAGEOFF
	mov	w11, #20
	smaddl	x8, w10, w11, x8
	ldr	w2, [x8, w9, sxtw #2]
	mov	x0, x21
	bl	_pci_write_config_dword
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @sc1200_set_piomode.pio_timings
_sc1200_set_piomode.pio_timings:
	.long	37234                           ; 0x9172
	.long	74097                           ; 0x12171
	.long	131200                          ; 0x20080
	.long	204816                          ; 0x32010
	.long	262160                          ; 0x40010
	.long	3509752178                      ; 0xd1329172
	.long	1897996657                      ; 0x71212171
	.long	807403648                       ; 0x30200080
	.long	537927696                       ; 0x20102010
	.long	1048592                         ; 0x100010
	.long	4205049075                      ; 0xfaa3f4f3
	.long	3258069682                      ; 0xc23232b2
	.long	1362166209                      ; 0x513101c1
	.long	824258849                       ; 0x31213121
	.long	270602273                       ; 0x10211021
	.long	4294246388                      ; 0xfff4fff4
	.long	4082324435                      ; 0xf35353d3
	.long	2168521457                      ; 0x814102f1
	.long	1110524465                      ; 0x42314231
	.long	288428337                       ; 0x11311131

	.comm	_XFER_PIO_0,4,2                 ; @XFER_PIO_0
	.no_dead_strip	_sc1200_set_piomode
.subsections_via_symbols
