	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_core_pci_fixup_addresses
_bcma_core_pci_fixup_addresses:         ## @bcma_core_pci_fixup_addresses
	.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
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_bcma_core_pci_hostmode_read_config@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_PCI_SLOT
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	movq	(%rbx), %rax
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_assign_resource
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_5:
	movq	(%rbx), %rax
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pci_assign_resource
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_8:
	movq	(%rbx), %rax
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_pci_assign_resource
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_11:
	movq	(%rbx), %rax
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_pci_assign_resource
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_14:
	movq	(%rbx), %rax
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_pci_assign_resource
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_17:
	movq	(%rbx), %rax
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	testl	%ecx, 20(%rax)
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_pci_assign_resource
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movq	%rbx, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bcma_core_pci_hostmode_read_config,8,3 ## @bcma_core_pci_hostmode_read_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI: Fixing up addresses %s\n"

	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"PCI: Problem fixing up the addresses on %s\n"

	.no_dead_strip	_bcma_core_pci_fixup_addresses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_core_pci_fixup_addresses
_bcma_core_pci_fixup_addresses:         ; @bcma_core_pci_fixup_addresses
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _bcma_core_pci_hostmode_read_config@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bcma_core_pci_hostmode_read_config@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_PCI_SLOT
	cbz	x0, LBB0_20
; %bb.2:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh5:
	adrp	x20, _IORESOURCE_IO@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IORESOURCE_IO@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh7:
	adrp	x21, _IORESOURCE_MEM@GOTPAGE
Lloh8:
	ldr	x21, [x21, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_assign_resource
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_5:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_assign_resource
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_8:
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #2
	bl	_pci_assign_resource
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_11:
	ldr	x8, [x19]
	ldr	w8, [x8, #12]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #3
	bl	_pci_assign_resource
	cbz	w0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_14:
	ldr	x8, [x19]
	ldr	w8, [x8, #16]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x19
	mov	w1, #4
	bl	_pci_assign_resource
	cbz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_17:
	ldr	x8, [x19]
	ldr	w8, [x8, #20]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	mov	x0, x19
	mov	w1, #5
	bl	_pci_assign_resource
	cbz	w0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_pci_name
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_err
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_bcma_core_pci_hostmode_read_config,8,3 ; @bcma_core_pci_hostmode_read_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI: Fixing up addresses %s\n"

	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"PCI: Problem fixing up the addresses on %s\n"

	.no_dead_strip	_bcma_core_pci_fixup_addresses
.subsections_via_symbols
