	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis_ata33_program_udma_timings
_sis_ata33_program_udma_timings:        ## @sis_ata33_program_udma_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_pci_dev
	movq	%rax, %r15
	movl	(%rbx), %eax
	movl	$0, -36(%rbp)
	movq	_chipset_family@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	leal	65(%rax,%rax), %r12d
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_pci_read_config_byte
	movl	$128, %edx
	orl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movq	_cycle_time_range@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$8, %cl
	subb	(%rax,%rbx,4), %cl
	movl	$255, %eax
	shrl	%cl, %eax
	movq	_cycle_time_offset@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movb	(%rsi,%rbx,4), %cl
	shll	%cl, %eax
	notl	%eax
	andl	%edx, %eax
	movl	%eax, -36(%rbp)
	movq	_cycle_time_value@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	_XFER_UDMA_0@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movslq	%r14d, %rdi
	subq	%rdx, %rdi
	movl	(%rcx,%rdi,4), %edx
	movb	(%rsi,%rbx,4), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_pci_write_config_byte
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_chipset_family,4,2             ## @chipset_family
	.comm	_cycle_time_range,8,3           ## @cycle_time_range
	.comm	_cycle_time_offset,8,3          ## @cycle_time_offset
	.comm	_cycle_time_value,8,3           ## @cycle_time_value
	.comm	_XFER_UDMA_0,4,2                ## @XFER_UDMA_0
	.no_dead_strip	_sis_ata33_program_udma_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis_ata33_program_udma_timings
_sis_ata33_program_udma_timings:        ; @sis_ata33_program_udma_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_pci_dev
	mov	x21, x0
	ldr	w8, [x20]
	lsl	w8, w8, #1
	str	wzr, [sp, #12]
Lloh0:
	adrp	x9, _chipset_family@GOTPAGE
Lloh1:
	ldr	x9, [x9, _chipset_family@GOTPAGEOFF]
Lloh2:
	ldrsw	x22, [x9]
	add	w20, w8, #65
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x80
	str	w8, [sp, #12]
Lloh3:
	adrp	x9, _cycle_time_range@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cycle_time_range@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x10, x22, #2
	ldr	w9, [x9, x10]
	mov	w11, #8
	sub	w9, w11, w9
	mov	w11, #255
Lloh6:
	adrp	x12, _cycle_time_offset@GOTPAGE
Lloh7:
	ldr	x12, [x12, _cycle_time_offset@GOTPAGEOFF]
	lsr	w9, w11, w9
Lloh8:
	ldr	x11, [x12]
	ldr	w12, [x11, x10]
	lsl	w9, w9, w12
	bic	w8, w8, w9
	str	w8, [sp, #12]
Lloh9:
	adrp	x9, _cycle_time_value@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cycle_time_value@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x9, [x9, x22, lsl #3]
Lloh12:
	adrp	x12, _XFER_UDMA_0@GOTPAGE
Lloh13:
	ldr	x12, [x12, _XFER_UDMA_0@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	sub	w12, w19, w12
	ldr	w9, [x9, w12, sxtw #2]
	ldr	w10, [x11, x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	str	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_pci_write_config_byte
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_chipset_family,4,2             ; @chipset_family
	.comm	_cycle_time_range,8,3           ; @cycle_time_range
	.comm	_cycle_time_offset,8,3          ; @cycle_time_offset
	.comm	_cycle_time_value,8,3           ; @cycle_time_value
	.comm	_XFER_UDMA_0,4,2                ; @XFER_UDMA_0
	.no_dead_strip	_sis_ata33_program_udma_timings
.subsections_via_symbols
