	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis_fixup
_sis_fixup:                             ## @sis_fixup
	.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	%rdi, %r14
	movq	(%rsi), %rax
	cmpq	_sis_info133@GOTPCREL(%rip), %rax
	je	LBB0_11
## %bb.1:
	cmpq	_sis_info133_early@GOTPCREL(%rip), %rax
	je	LBB0_15
## %bb.2:
	cmpq	_sis_info100@GOTPCREL(%rip), %rax
	je	LBB0_15
## %bb.3:
	cmpq	_sis_info66@GOTPCREL(%rip), %rax
	je	LBB0_17
## %bb.4:
	cmpq	_sis_info100_early@GOTPCREL(%rip), %rax
	je	LBB0_17
## %bb.5:
	movq	%rsi, %rbx
	cmpq	_sis_info33@GOTPCREL(%rip), %rax
	jne	LBB0_8
## %bb.6:
	movq	_PCI_CLASS_PROG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_byte
	movl	-28(%rbp), %edx
	testb	$15, %dl
	je	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	andl	$240, %edx
	movq	%r14, %rdi
	callq	_pci_write_config_byte
LBB0_8:
	movq	(%rbx), %rax
	cmpq	_sis_info@GOTPCREL(%rip), %rax
	je	LBB0_19
## %bb.9:
	cmpq	_sis_info33@GOTPCREL(%rip), %rax
	je	LBB0_19
## %bb.10:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_23
LBB0_11:
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_pci_read_config_word
	movl	-32(%rbp), %edx
	testb	$8, %dl
	je	LBB0_13
## %bb.12:
	andl	$-9, %edx
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_pci_write_config_word
LBB0_13:
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movl	$82, %esi
	callq	_pci_read_config_word
	movl	-32(%rbp), %edx
	testb	$8, %dl
	je	LBB0_23
## %bb.14:
	andl	$-9, %edx
	movq	%r14, %rdi
	movl	$82, %esi
	callq	_pci_write_config_word
	jmp	LBB0_23
LBB0_15:
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_pci_write_config_byte
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$73, %esi
	callq	_pci_read_config_byte
	movl	-28(%rbp), %edx
	testb	$1, %dl
	jne	LBB0_23
## %bb.16:
	orl	$1, %edx
	movq	%r14, %rdi
	movl	$73, %esi
	jmp	LBB0_22
LBB0_17:
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_pci_write_config_byte
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$82, %esi
	callq	_pci_read_config_byte
	movl	-28(%rbp), %edx
	testb	$4, %dl
	jne	LBB0_23
## %bb.18:
	orl	$4, %edx
	jmp	LBB0_21
LBB0_19:
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$82, %esi
	callq	_pci_read_config_byte
	movl	-28(%rbp), %edx
	testb	$8, %dl
	jne	LBB0_23
## %bb.20:
	orl	$8, %edx
LBB0_21:
	movq	%r14, %rdi
	movl	$82, %esi
LBB0_22:
	callq	_pci_write_config_byte
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sis_info133,4,2                ## @sis_info133
	.comm	_sis_info133_early,4,2          ## @sis_info133_early
	.comm	_sis_info100,4,2                ## @sis_info100
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
	.comm	_sis_info66,4,2                 ## @sis_info66
	.comm	_sis_info100_early,4,2          ## @sis_info100_early
	.comm	_sis_info33,4,2                 ## @sis_info33
	.comm	_PCI_CLASS_PROG,4,2             ## @PCI_CLASS_PROG
	.comm	_sis_info,4,2                   ## @sis_info
	.no_dead_strip	_sis_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis_fixup
_sis_fixup:                             ; @sis_fixup
	.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, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _sis_info133@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sis_info133@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x9, _sis_info133_early@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sis_info133_early@GOTPAGEOFF]
	cmp	x8, x9
Lloh4:
	adrp	x9, _sis_info100@GOTPAGE
Lloh5:
	ldr	x9, [x9, _sis_info100@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_8
; %bb.2:
Lloh6:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_pci_write_config_byte
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #73
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	tbnz	w8, #0, LBB0_21
; %bb.3:
	orr	w2, w8, #0x1
	mov	x0, x19
	mov	w1, #73
	b	LBB0_20
LBB0_4:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #80
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	tbz	w8, #3, LBB0_6
; %bb.5:
	and	w2, w8, #0xfffffff7
	mov	x0, x19
	mov	w1, #80
	bl	_pci_write_config_word
LBB0_6:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #82
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	tbz	w8, #3, LBB0_21
; %bb.7:
	and	w2, w8, #0xfffffff7
	mov	x0, x19
	mov	w1, #82
	bl	_pci_write_config_word
	b	LBB0_21
LBB0_8:
Lloh9:
	adrp	x9, _sis_info66@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sis_info66@GOTPAGEOFF]
	cmp	x8, x9
Lloh11:
	adrp	x9, _sis_info100_early@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sis_info100_early@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_pci_write_config_byte
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #82
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	tbnz	w8, #2, LBB0_21
; %bb.10:
	orr	w2, w8, #0x4
	b	LBB0_19
LBB0_11:
	mov	x20, x1
Lloh16:
	adrp	x21, _sis_info33@GOTPAGE
Lloh17:
	ldr	x21, [x21, _sis_info33@GOTPAGEOFF]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.12:
Lloh18:
	adrp	x22, _PCI_CLASS_PROG@GOTPAGE
Lloh19:
	ldr	x22, [x22, _PCI_CLASS_PROG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	tst	w8, #0xf
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x22]
	and	w2, w8, #0xf0
	mov	x0, x19
	bl	_pci_write_config_byte
LBB0_14:
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _sis_info@GOTPAGE
Lloh21:
	ldr	x9, [x9, _sis_info@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.15:
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.16:
	bl	_BUG
	b	LBB0_21
LBB0_17:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #82
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	tbnz	w8, #3, LBB0_21
; %bb.18:
	orr	w2, w8, #0x8
LBB0_19:
	mov	x0, x19
	mov	w1, #82
LBB0_20:
	bl	_pci_write_config_byte
LBB0_21:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_sis_info133,4,2                ; @sis_info133
	.comm	_sis_info133_early,4,2          ; @sis_info133_early
	.comm	_sis_info100,4,2                ; @sis_info100
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
	.comm	_sis_info66,4,2                 ; @sis_info66
	.comm	_sis_info100_early,4,2          ; @sis_info100_early
	.comm	_sis_info33,4,2                 ; @sis_info33
	.comm	_PCI_CLASS_PROG,4,2             ; @PCI_CLASS_PROG
	.comm	_sis_info,4,2                   ; @sis_info
	.no_dead_strip	_sis_fixup
.subsections_via_symbols
