	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_setup_cardbus              ## -- Begin function pci_setup_cardbus
	.p2align	4, 0x90
_pci_setup_cardbus:                     ## @pci_setup_cardbus
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	leaq	8(%rdi), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_pci_info
	movq	(%r14), %rax
	movq	(%rax), %rbx
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_pcibios_resource_to_bus
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_pci_info
	movq	_PCI_CB_IO_BASE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
	movq	_PCI_CB_IO_LIMIT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
LBB0_2:
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_pcibios_resource_to_bus
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_pci_info
	movq	_PCI_CB_IO_BASE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
	movq	_PCI_CB_IO_LIMIT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
LBB0_4:
	movq	(%r14), %rax
	movq	16(%rax), %rbx
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_pcibios_resource_to_bus
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_pci_info
	movq	_PCI_CB_MEMORY_BASE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
	movq	_PCI_CB_MEMORY_LIMIT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
LBB0_6:
	movq	(%r14), %rax
	movq	24(%rax), %rbx
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_pcibios_resource_to_bus
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_pci_info
	movq	_PCI_CB_MEMORY_BASE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
	movq	_PCI_CB_MEMORY_LIMIT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	_pci_write_config_dword
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CardBus bridge to %pR\n"

	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
L_.str.1:                               ## @.str.1
	.asciz	"  bridge window %pR\n"

	.comm	_PCI_CB_IO_BASE_0,4,2           ## @PCI_CB_IO_BASE_0
	.comm	_PCI_CB_IO_LIMIT_0,4,2          ## @PCI_CB_IO_LIMIT_0
	.comm	_PCI_CB_IO_BASE_1,4,2           ## @PCI_CB_IO_BASE_1
	.comm	_PCI_CB_IO_LIMIT_1,4,2          ## @PCI_CB_IO_LIMIT_1
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_PCI_CB_MEMORY_BASE_0,4,2       ## @PCI_CB_MEMORY_BASE_0
	.comm	_PCI_CB_MEMORY_LIMIT_0,4,2      ## @PCI_CB_MEMORY_LIMIT_0
	.comm	_PCI_CB_MEMORY_BASE_1,4,2       ## @PCI_CB_MEMORY_BASE_1
	.comm	_PCI_CB_MEMORY_LIMIT_1,4,2      ## @PCI_CB_MEMORY_LIMIT_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_setup_cardbus              ; -- Begin function pci_setup_cardbus
	.p2align	2
_pci_setup_cardbus:                     ; @pci_setup_cardbus
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x2, x0, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_info
	ldr	x8, [x20]
	ldr	x21, [x8]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, x21
	bl	_pcibios_resource_to_bus
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _IORESOURCE_IO@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IORESOURCE_IO@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_pci_info
Lloh6:
	adrp	x8, _PCI_CB_IO_BASE_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_CB_IO_BASE_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh9:
	adrp	x8, _PCI_CB_IO_LIMIT_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_CB_IO_LIMIT_0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_pci_write_config_dword
LBB0_2:
	ldr	x8, [x20]
	ldr	x21, [x8, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, x21
	bl	_pcibios_resource_to_bus
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_pci_info
Lloh14:
	adrp	x8, _PCI_CB_IO_BASE_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_CB_IO_BASE_1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh17:
	adrp	x8, _PCI_CB_IO_LIMIT_1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCI_CB_IO_LIMIT_1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_pci_write_config_dword
LBB0_4:
	ldr	x8, [x20]
	ldr	x21, [x8, #16]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, x21
	bl	_pcibios_resource_to_bus
	ldr	w8, [x21]
Lloh20:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh21:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_pci_info
Lloh24:
	adrp	x8, _PCI_CB_MEMORY_BASE_0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCI_CB_MEMORY_BASE_0@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh27:
	adrp	x8, _PCI_CB_MEMORY_LIMIT_0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCI_CB_MEMORY_LIMIT_0@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_pci_write_config_dword
LBB0_6:
	ldr	x8, [x20]
	ldr	x20, [x8, #24]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, x20
	bl	_pcibios_resource_to_bus
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_pci_info
Lloh32:
	adrp	x8, _PCI_CB_MEMORY_BASE_1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCI_CB_MEMORY_BASE_1@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh35:
	adrp	x8, _PCI_CB_MEMORY_LIMIT_1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_CB_MEMORY_LIMIT_1@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_pci_write_config_dword
LBB0_8:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CardBus bridge to %pR\n"

	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
l_.str.1:                               ; @.str.1
	.asciz	"  bridge window %pR\n"

	.comm	_PCI_CB_IO_BASE_0,4,2           ; @PCI_CB_IO_BASE_0
	.comm	_PCI_CB_IO_LIMIT_0,4,2          ; @PCI_CB_IO_LIMIT_0
	.comm	_PCI_CB_IO_BASE_1,4,2           ; @PCI_CB_IO_BASE_1
	.comm	_PCI_CB_IO_LIMIT_1,4,2          ; @PCI_CB_IO_LIMIT_1
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_PCI_CB_MEMORY_BASE_0,4,2       ; @PCI_CB_MEMORY_BASE_0
	.comm	_PCI_CB_MEMORY_LIMIT_0,4,2      ; @PCI_CB_MEMORY_LIMIT_0
	.comm	_PCI_CB_MEMORY_BASE_1,4,2       ; @PCI_CB_MEMORY_BASE_1
	.comm	_PCI_CB_MEMORY_LIMIT_1,4,2      ; @PCI_CB_MEMORY_LIMIT_1
.subsections_via_symbols
