	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_chipset_sis5513
_init_chipset_sis5513:                  ## @init_chipset_sis5513
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_chipset_family@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_pci_write_config_byte
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$4, %dl
	jne	LBB0_16
## %bb.9:
	orl	$4, %edx
	jmp	LBB0_14
LBB0_6:
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_pci_write_config_byte
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$73, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$1, %dl
	jne	LBB0_16
## %bb.7:
	orl	$1, %edx
	movq	%rbx, %rdi
	movl	$73, %esi
	jmp	LBB0_15
LBB0_10:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$15, %dl
	je	LBB0_12
## %bb.11:
	andl	$240, %edx
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_pci_write_config_byte
LBB0_12:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$8, %dl
	jne	LBB0_16
## %bb.13:
	orl	$8, %edx
LBB0_14:
	movq	%rbx, %rdi
	movl	$82, %esi
LBB0_15:
	callq	_pci_write_config_byte
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_pci_read_config_word
	movl	-16(%rbp), %edx
	testb	$8, %dl
	je	LBB0_4
## %bb.3:
	andl	$65527, %edx                    ## imm = 0xFFF7
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_pci_write_config_word
LBB0_4:
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_pci_read_config_word
	movl	-16(%rbp), %edx
	testb	$8, %dl
	je	LBB0_16
## %bb.5:
	andl	$65527, %edx                    ## imm = 0xFFF7
	movq	%rbx, %rdi
	movl	$82, %esi
	callq	_pci_write_config_word
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_chipset_family,4,2             ## @chipset_family
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
	.no_dead_strip	_init_chipset_sis5513
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_chipset_sis5513
_init_chipset_sis5513:                  ; @init_chipset_sis5513
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _chipset_family@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chipset_family@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_pci_write_config_byte
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #82
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tbnz	w8, #2, LBB0_12
; %bb.3:
	orr	w2, w8, #0x4
	b	LBB0_10
LBB0_4:
Lloh8:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_pci_write_config_byte
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #73
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tbnz	w8, #0, LBB0_12
; %bb.5:
	orr	w2, w8, #0x1
	mov	x0, x19
	mov	w1, #73
	b	LBB0_11
LBB0_6:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #9
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tst	w8, #0xf
	b.eq	LBB0_8
; %bb.7:
	and	w2, w8, #0xf0
	mov	x0, x19
	mov	w1, #9
	bl	_pci_write_config_byte
LBB0_8:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #82
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tbnz	w8, #3, LBB0_12
; %bb.9:
	orr	w2, w8, #0x8
LBB0_10:
	mov	x0, x19
	mov	w1, #82
LBB0_11:
	bl	_pci_write_config_byte
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #80
	bl	_pci_read_config_word
	ldr	w8, [sp, #8]
	tbz	w8, #3, LBB0_15
; %bb.14:
	mov	w9, #65527
	and	w2, w8, w9
	mov	x0, x19
	mov	w1, #80
	bl	_pci_write_config_word
LBB0_15:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #82
	bl	_pci_read_config_word
	ldr	w8, [sp, #8]
	tbz	w8, #3, LBB0_12
; %bb.16:
	mov	w9, #65527
	and	w2, w8, w9
	mov	x0, x19
	mov	w1, #82
	bl	_pci_write_config_word
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_chipset_family,4,2             ; @chipset_family
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
	.no_dead_strip	_init_chipset_sis5513
.subsections_via_symbols
