	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx88_pci_quirks
_cx88_pci_quirks:                       ## @cx88_pci_quirks
	.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
	movq	%rsi, %r14
	movq	_UNSET@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	_pci_pci_problems@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_PCIPCI_TRITON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_CX88X_EN_TBFX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_PCIPCI_NATOMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_CX88X_EN_TBFX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %eax
LBB0_5:
	movq	_PCIPCI_VIAETBF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_CX88X_EN_TBFX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %eax
LBB0_7:
	movq	_PCIPCI_VSFX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_CX88X_EN_VSFX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_9:
	movq	_latency@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	(%r12), %eax
	cmpl	%eax, %ecx
	cmovnel	%ecx, %r15d
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	_CX88X_DEVCTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_byte
	orl	-44(%rbp), %ebx
	movl	%ebx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_pci_write_config_byte
	movq	_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	cmpl	%eax, %r15d
	je	LBB0_13
## %bb.12:
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_pci_write_config_byte
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSET,4,2                      ## @UNSET
	.comm	_pci_pci_problems,4,2           ## @pci_pci_problems
	.comm	_PCIPCI_TRITON,4,2              ## @PCIPCI_TRITON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"quirk: PCIPCI_TRITON -- set TBFX\n"

	.comm	_CX88X_EN_TBFX,4,2              ## @CX88X_EN_TBFX
	.comm	_PCIPCI_NATOMA,4,2              ## @PCIPCI_NATOMA
L_.str.1:                               ## @.str.1
	.asciz	"quirk: PCIPCI_NATOMA -- set TBFX\n"

	.comm	_PCIPCI_VIAETBF,4,2             ## @PCIPCI_VIAETBF
L_.str.2:                               ## @.str.2
	.asciz	"quirk: PCIPCI_VIAETBF -- set TBFX\n"

	.comm	_PCIPCI_VSFX,4,2                ## @PCIPCI_VSFX
L_.str.3:                               ## @.str.3
	.asciz	"quirk: PCIPCI_VSFX -- set VSFX\n"

	.comm	_CX88X_EN_VSFX,4,2              ## @CX88X_EN_VSFX
	.comm	_latency,4,2                    ## @latency
	.comm	_CX88X_DEVCTRL,4,2              ## @CX88X_DEVCTRL
L_.str.4:                               ## @.str.4
	.asciz	"setting pci latency timer to %d\n"

	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
	.comm	_PCIPCI_ALIMAGIK,4,2            ## @PCIPCI_ALIMAGIK
	.no_dead_strip	_cx88_pci_quirks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx88_pci_quirks
_cx88_pci_quirks:                       ; @cx88_pci_quirks
	.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
Lloh0:
	adrp	x20, _UNSET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UNSET@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh2:
	adrp	x23, _pci_pci_problems@GOTPAGE
Lloh3:
	ldr	x23, [x23, _pci_pci_problems@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x9, _PCIPCI_TRITON@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PCIPCI_TRITON@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x24, _CX88X_EN_TBFX@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CX88X_EN_TBFX@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w22, [x24]
	ldr	w8, [x23]
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh11:
	adrp	x9, _PCIPCI_NATOMA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCIPCI_NATOMA@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	w8, [x24]
	orr	w22, w8, w22
	ldr	w8, [x23]
LBB0_5:
Lloh16:
	adrp	x9, _PCIPCI_VIAETBF@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PCIPCI_VIAETBF@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	w8, [x24]
	orr	w22, w8, w22
	ldr	w8, [x23]
LBB0_7:
Lloh21:
	adrp	x9, _PCIPCI_VSFX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PCIPCI_VSFX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
Lloh26:
	adrp	x8, _CX88X_EN_VSFX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CX88X_EN_VSFX@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_9:
Lloh29:
	adrp	x23, _latency@GOTPAGE
Lloh30:
	ldr	x23, [x23, _latency@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	w8, [x20]
	cmp	w9, w8
	csel	w21, w21, w9, eq
	cbz	w22, LBB0_11
; %bb.10:
Lloh31:
	adrp	x24, _CX88X_DEVCTRL@GOTPAGE
Lloh32:
	ldr	x24, [x24, _CX88X_DEVCTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	orr	w2, w8, w22
	str	w2, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_pci_write_config_byte
	ldr	w8, [x20]
LBB0_11:
	cmp	w21, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x23]
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
Lloh35:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_pci_write_config_byte
LBB0_13:
	mov	w0, #0
	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	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSET,4,2                      ; @UNSET
	.comm	_pci_pci_problems,4,2           ; @pci_pci_problems
	.comm	_PCIPCI_TRITON,4,2              ; @PCIPCI_TRITON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"quirk: PCIPCI_TRITON -- set TBFX\n"

	.comm	_CX88X_EN_TBFX,4,2              ; @CX88X_EN_TBFX
	.comm	_PCIPCI_NATOMA,4,2              ; @PCIPCI_NATOMA
l_.str.1:                               ; @.str.1
	.asciz	"quirk: PCIPCI_NATOMA -- set TBFX\n"

	.comm	_PCIPCI_VIAETBF,4,2             ; @PCIPCI_VIAETBF
l_.str.2:                               ; @.str.2
	.asciz	"quirk: PCIPCI_VIAETBF -- set TBFX\n"

	.comm	_PCIPCI_VSFX,4,2                ; @PCIPCI_VSFX
l_.str.3:                               ; @.str.3
	.asciz	"quirk: PCIPCI_VSFX -- set VSFX\n"

	.comm	_CX88X_EN_VSFX,4,2              ; @CX88X_EN_VSFX
	.comm	_latency,4,2                    ; @latency
	.comm	_CX88X_DEVCTRL,4,2              ; @CX88X_DEVCTRL
l_.str.4:                               ; @.str.4
	.asciz	"setting pci latency timer to %d\n"

	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
	.comm	_PCIPCI_ALIMAGIK,4,2            ; @PCIPCI_ALIMAGIK
	.no_dead_strip	_cx88_pci_quirks
.subsections_via_symbols
