	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_get_resource
_brcmf_pcie_get_resource:               ## @brcmf_pcie_get_resource
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_brcmf_err
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_set_master
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_pci_resource_start
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movl	$2, %esi
	callq	_pci_resource_len
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:
	movq	_BRCMF_PCIE_REG_MAP_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ioremap_nocache
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ioremap_nocache
	movq	%rax, (%r14)
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_PCIE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rax, %rcx
LBB0_5:
	xorl	%eax, %eax
	callq	_brcmf_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_enable_device failed err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"BAR1 Not enabled, device size=%ld, addr=%#016llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BRCMF_PCIE_REG_MAP_SIZE,8,3    ## @BRCMF_PCIE_REG_MAP_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"ioremap() failed (%p,%p)\n"

	.comm	_PCIE,4,2                       ## @PCIE
L_.str.3:                               ## @.str.3
	.asciz	"Phys addr : reg space = %p base addr %#016llx\n"

L_.str.4:                               ## @.str.4
	.asciz	"Phys addr : mem space = %p base addr %#016llx size 0x%x\n"

	.no_dead_strip	_brcmf_pcie_get_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_get_resource
_brcmf_pcie_get_resource:               ; @brcmf_pcie_get_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x0, x22
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_brcmf_err
	b	LBB0_10
LBB0_2:
	mov	x0, x22
	bl	_pci_set_master
	mov	x0, x22
	mov	w1, #0
	bl	_pci_resource_start
	mov	x23, x0
	mov	x0, x22
	mov	w1, #2
	bl	_pci_resource_start
	mov	x21, x0
	mov	x0, x22
	mov	w1, #2
	bl	_pci_resource_len
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.3:
	cbz	x21, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _BRCMF_PCIE_REG_MAP_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BRCMF_PCIE_REG_MAP_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_ioremap_nocache
	str	x0, [x19, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_ioremap_nocache
	str	x0, [x19]
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_8
; %bb.5:
	cbz	x0, LBB0_8
; %bb.6:
Lloh5:
	adrp	x20, _PCIE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PCIE@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x23
	bl	_brcmf_dbg
	ldr	w0, [x20]
	ldr	x2, [x19]
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x21
	bl	_brcmf_dbg
	mov	w21, #0
	b	LBB0_10
LBB0_7:
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	b	LBB0_9
LBB0_8:
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_9:
	bl	_brcmf_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_enable_device failed err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"BAR1 Not enabled, device size=%ld, addr=%#016llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BRCMF_PCIE_REG_MAP_SIZE,8,3    ; @BRCMF_PCIE_REG_MAP_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"ioremap() failed (%p,%p)\n"

	.comm	_PCIE,4,2                       ; @PCIE
l_.str.3:                               ; @.str.3
	.asciz	"Phys addr : reg space = %p base addr %#016llx\n"

l_.str.4:                               ; @.str.4
	.asciz	"Phys addr : mem space = %p base addr %#016llx size 0x%x\n"

	.no_dead_strip	_brcmf_pcie_get_resource
.subsections_via_symbols
