	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_read_bridge_windows
_pci_read_bridge_windows:               ## @pci_read_bridge_windows
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_PCI_IO_BASE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	callq	_pci_read_config_word
	cmpq	$0, -32(%rbp)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$57584, %edx                    ## imm = 0xE0F0
	callq	_pci_write_config_word
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_write_config_word
	cmpq	$0, -32(%rbp)
	je	LBB0_3
LBB0_2:
	movl	$1, (%rbx)
LBB0_3:
	movq	8(%rbx), %rax
	movq	_PCI_VENDOR_ID_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	cmpl	$1, 16(%rbx)
	je	LBB0_10
LBB0_5:
	movq	_PCI_PREF_MEMORY_BASE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-2031632, %edx                 ## imm = 0xFFE0FFF0
	callq	_pci_write_config_dword
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_write_config_dword
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:
	movl	$1, 20(%rbx)
	movq	_PCI_PREF_RANGE_TYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PCI_PREF_RANGE_TYPE_64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:
	movq	_PCI_PREF_BASE_UPPER32@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_pci_write_config_dword
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	cmpl	$0, -36(%rbp)
	je	LBB0_10
## %bb.9:
	movl	$1, 24(%rbx)
LBB0_10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_IO_BASE,4,2                ## @PCI_IO_BASE
	.comm	_PCI_VENDOR_ID_DEC,8,3          ## @PCI_VENDOR_ID_DEC
	.comm	_PCI_PREF_MEMORY_BASE,4,2       ## @PCI_PREF_MEMORY_BASE
	.comm	_PCI_PREF_RANGE_TYPE_MASK,4,2   ## @PCI_PREF_RANGE_TYPE_MASK
	.comm	_PCI_PREF_RANGE_TYPE_64,4,2     ## @PCI_PREF_RANGE_TYPE_64
	.comm	_PCI_PREF_BASE_UPPER32,4,2      ## @PCI_PREF_BASE_UPPER32
	.no_dead_strip	_pci_read_bridge_windows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_read_bridge_windows
_pci_read_bridge_windows:               ; @pci_read_bridge_windows
	.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	x20, _PCI_IO_BASE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_IO_BASE@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_pci_read_config_word
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #57584
	bl	_pci_write_config_word
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_write_config_word
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _PCI_VENDOR_ID_DEC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_VENDOR_ID_DEC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.eq	LBB0_10
LBB0_5:
Lloh5:
	adrp	x20, _PCI_PREF_MEMORY_BASE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PCI_PREF_MEMORY_BASE@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #65520
	movk	w2, #65504, lsl #16
	bl	_pci_write_config_dword
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_write_config_dword
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_10
LBB0_7:
	mov	w9, #1
	str	w9, [x19, #20]
Lloh7:
	adrp	x9, _PCI_PREF_RANGE_TYPE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PCI_PREF_RANGE_TYPE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh10:
	adrp	x9, _PCI_PREF_RANGE_TYPE_64@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCI_PREF_RANGE_TYPE_64@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
Lloh13:
	adrp	x20, _PCI_PREF_BASE_UPPER32@GOTPAGE
Lloh14:
	ldr	x20, [x20, _PCI_PREF_BASE_UPPER32@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #-1
	bl	_pci_write_config_dword
	ldr	w1, [x20]
	mov	x2, sp
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w1, [x20]
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_pci_write_config_dword
	ldr	w8, [sp]
	cbz	w8, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_IO_BASE,4,2                ; @PCI_IO_BASE
	.comm	_PCI_VENDOR_ID_DEC,8,3          ; @PCI_VENDOR_ID_DEC
	.comm	_PCI_PREF_MEMORY_BASE,4,2       ; @PCI_PREF_MEMORY_BASE
	.comm	_PCI_PREF_RANGE_TYPE_MASK,4,2   ; @PCI_PREF_RANGE_TYPE_MASK
	.comm	_PCI_PREF_RANGE_TYPE_64,4,2     ; @PCI_PREF_RANGE_TYPE_64
	.comm	_PCI_PREF_BASE_UPPER32,4,2      ; @PCI_PREF_BASE_UPPER32
	.no_dead_strip	_pci_read_bridge_windows
.subsections_via_symbols
