	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_pcie_bridge
_configure_pcie_bridge:                 ## @configure_pcie_bridge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.2:
	leaq	_configure_pcie_bridge.bridge_ids(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pci_match_id
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	leaq	-20(%rbp), %r14
	movq	%rbx, %rdi
	movl	$72, %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	$2049, %edx                     ## imm = 0x801
	orl	-20(%rbp), %edx
	movl	%edx, -20(%rbp)
	movq	%rbx, %rdi
	movl	$72, %esi
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	movl	$132, %esi
	movl	$12, %edx
	callq	_pci_write_config_dword
	movq	%rbx, %rdi
	movl	$136, %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	$-939524097, %edx               ## imm = 0xC7FFFFFF
	andl	-20(%rbp), %edx
	orl	$268435456, %edx                ## imm = 0x10000000
	movl	%edx, -20(%rbp)
	movq	%rbx, %rdi
	movl	$136, %esi
	jmp	LBB0_7
LBB0_6:
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_pci_read_config_dword
	movl	-20(%rbp), %edx
	orl	$1, %edx
	movl	%edx, -20(%rbp)
	movq	%rbx, %rdi
	movl	$64, %esi
LBB0_7:
	callq	_pci_write_config_dword
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @configure_pcie_bridge.bridge_ids
_configure_pcie_bridge.bridge_ids:
	.space	8
	.space	8
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.space	8

	.no_dead_strip	_configure_pcie_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_pcie_bridge
_configure_pcie_bridge:                 ; @configure_pcie_bridge
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x19, [x8]
	cbz	x19, LBB0_8
; %bb.2:
Lloh0:
	adrp	x0, _configure_pcie_bridge.bridge_ids@PAGE
Lloh1:
	add	x0, x0, _configure_pcie_bridge.bridge_ids@PAGEOFF
	mov	x1, x19
	bl	_pci_match_id
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.4:
	cbnz	w8, LBB0_8
; %bb.5:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #72
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	mov	w9, #2049
	orr	w2, w8, w9
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #72
	bl	_pci_write_config_dword
	mov	x0, x19
	mov	w1, #132
	mov	w2, #12
	bl	_pci_write_config_dword
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #136
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w8, w8, #0xc7ffffff
	orr	w2, w8, #0x10000000
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #136
	b	LBB0_7
LBB0_6:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #64
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x1
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #64
LBB0_7:
	bl	_pci_write_config_dword
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @configure_pcie_bridge.bridge_ids
_configure_pcie_bridge.bridge_ids:
	.space	8
	.space	8
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.space	8

	.no_dead_strip	_configure_pcie_bridge
.subsections_via_symbols
