	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpiphp_post_dock_fixup
_acpiphp_post_dock_fixup:               ## @acpiphp_post_dock_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
	callq	_acpiphp_grab_context
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.2:
	movq	_PCI_PRIMARY_BUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-28(%rbp), %eax
	movzbl	%ah, %ecx
	movl	8(%r14), %edx
	cmpl	%edx, %ecx
	je	LBB0_4
## %bb.3:
	andl	$-16777216, %eax                ## imm = 0xFF000000
	shll	$8, %edx
	orl	%eax, %edx
	movl	16(%r14), %eax
	shll	$16, %eax
	orl	24(%r14), %edx
	orl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_pci_write_config_dword
LBB0_4:
	movq	%rbx, %rdi
	callq	_acpiphp_let_context_go
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_PRIMARY_BUS,4,2            ## @PCI_PRIMARY_BUS
	.no_dead_strip	_acpiphp_post_dock_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpiphp_post_dock_fixup
_acpiphp_post_dock_fixup:               ; @acpiphp_post_dock_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
	bl	_acpiphp_grab_context
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	w0, [x20]
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x21, _PCI_PRIMARY_BUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_PRIMARY_BUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w9, [sp, #12]
	lsr	w10, w9, #8
	ldr	w8, [x20, #8]
	cmp	w8, w10, uxtb
	b.eq	LBB0_4
; %bb.3:
	and	w9, w9, #0xff000000
	ldr	w10, [x20, #24]
	ldr	w11, [x20, #16]
	orr	w8, w9, w8, lsl #8
	orr	w8, w8, w10
	orr	w2, w8, w11, lsl #16
	str	w2, [sp, #12]
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_pci_write_config_dword
LBB0_4:
	mov	x0, x19
	bl	_acpiphp_let_context_go
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_PRIMARY_BUS,4,2            ; @PCI_PRIMARY_BUS
	.no_dead_strip	_acpiphp_post_dock_fixup
.subsections_via_symbols
