	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpt36x_init_chipset
_hpt36x_init_chipset:                   ## @hpt36x_init_chipset
	.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	%rdi, %rbx
	movq	_PCI_CACHE_LINE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	callq	_pci_write_config_byte
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$120, %edx
	callq	_pci_write_config_byte
	movq	_PCI_MIN_GNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_pci_write_config_byte
	movq	_PCI_MAX_LAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_pci_write_config_byte
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$81, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$-128, %dl
	je	LBB0_2
## %bb.1:
	andl	$-129, %edx
	movq	%rbx, %rdi
	movl	$81, %esi
	callq	_pci_write_config_byte
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CACHE_LINE_SIZE,4,2        ## @PCI_CACHE_LINE_SIZE
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
	.comm	_PCI_MIN_GNT,4,2                ## @PCI_MIN_GNT
	.comm	_PCI_MAX_LAT,4,2                ## @PCI_MAX_LAT
	.no_dead_strip	_hpt36x_init_chipset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpt36x_init_chipset
_hpt36x_init_chipset:                   ; @hpt36x_init_chipset
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_CACHE_LINE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CACHE_LINE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _L1_CACHE_BYTES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _L1_CACHE_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	bl	_pci_write_config_byte
Lloh6:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #120
	bl	_pci_write_config_byte
Lloh9:
	adrp	x8, _PCI_MIN_GNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_MIN_GNT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_pci_write_config_byte
Lloh12:
	adrp	x8, _PCI_MAX_LAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_MAX_LAT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_pci_write_config_byte
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #81
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tbz	w8, #7, LBB0_2
; %bb.1:
	and	w2, w8, #0xffffff7f
	mov	x0, x19
	mov	w1, #81
	bl	_pci_write_config_byte
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CACHE_LINE_SIZE,4,2        ; @PCI_CACHE_LINE_SIZE
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
	.comm	_PCI_MIN_GNT,4,2                ; @PCI_MIN_GNT
	.comm	_PCI_MAX_LAT,4,2                ; @PCI_MAX_LAT
	.no_dead_strip	_hpt36x_init_chipset
.subsections_via_symbols
