	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis_ata100_program_timings
_sis_ata100_program_timings:            ## @sis_ata100_program_timings
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movl	(%rbx), %ebx
	addl	%ebx, %ebx
	movq	_XFER_MW_DMA_0@GOTPCREL(%rip), %r13
	cmpl	%r15d, (%r13)
	jle	LBB0_1
## %bb.2:
	movq	_XFER_PIO_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r15d, %rcx
	subq	%rax, %rcx
	leaq	l___const.sis_ata100_program_timings.pio_timings(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leal	64(%rbx), %r12d
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pci_read_config_byte
	movl	$-129, %edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pci_write_config_byte
	movslq	(%r13), %rax
	movslq	%r15d, %rcx
	subq	%rax, %rcx
	leaq	l___const.sis_ata100_program_timings.mwdma_timings(%rip), %rax
LBB0_3:
	movl	(%rax,%rcx,4), %edx
	addl	$65, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_write_config_byte
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.sis_ata100_program_timings.pio_timings
l___const.sis_ata100_program_timings.pio_timings:
	.long	0                               ## 0x0
	.long	103                             ## 0x67
	.long	68                              ## 0x44
	.long	51                              ## 0x33
	.long	49                              ## 0x31

	.p2align	2                               ## @__const.sis_ata100_program_timings.mwdma_timings
l___const.sis_ata100_program_timings.mwdma_timings:
	.long	8                               ## 0x8
	.long	50                              ## 0x32
	.long	49                              ## 0x31

	.comm	_XFER_MW_DMA_0,4,2              ## @XFER_MW_DMA_0
	.comm	_XFER_PIO_0,4,2                 ## @XFER_PIO_0
	.no_dead_strip	_sis_ata100_program_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis_ata100_program_timings
_sis_ata100_program_timings:            ; @sis_ata100_program_timings
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_pci_dev
	mov	x19, x0
	ldr	w8, [x21]
	lsl	w22, w8, #1
Lloh0:
	adrp	x23, _XFER_MW_DMA_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XFER_MW_DMA_0@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w20
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _XFER_PIO_0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XFER_PIO_0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w8, w20, w8
Lloh5:
	adrp	x9, l___const.sis_ata100_program_timings.pio_timings@PAGE
Lloh6:
	add	x9, x9, l___const.sis_ata100_program_timings.pio_timings@PAGEOFF
	b	LBB0_3
LBB0_2:
	add	w21, w22, #64
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	and	w2, w8, #0xffffff7f
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_pci_write_config_byte
	ldr	w8, [x23]
	sub	w8, w20, w8
Lloh7:
	adrp	x9, l___const.sis_ata100_program_timings.mwdma_timings@PAGE
Lloh8:
	add	x9, x9, l___const.sis_ata100_program_timings.mwdma_timings@PAGEOFF
LBB0_3:
	ldr	w2, [x9, w8, sxtw #2]
	add	w1, w22, #65
	mov	x0, x19
	bl	_pci_write_config_byte
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.sis_ata100_program_timings.pio_timings
l___const.sis_ata100_program_timings.pio_timings:
	.long	0                               ; 0x0
	.long	103                             ; 0x67
	.long	68                              ; 0x44
	.long	51                              ; 0x33
	.long	49                              ; 0x31

	.p2align	2                               ; @__const.sis_ata100_program_timings.mwdma_timings
l___const.sis_ata100_program_timings.mwdma_timings:
	.long	8                               ; 0x8
	.long	50                              ; 0x32
	.long	49                              ; 0x31

	.comm	_XFER_MW_DMA_0,4,2              ; @XFER_MW_DMA_0
	.comm	_XFER_PIO_0,4,2                 ; @XFER_PIO_0
	.no_dead_strip	_sis_ata100_program_timings
.subsections_via_symbols
