	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_probe
_brcmf_pcie_probe:                      ## @brcmf_pcie_probe
	.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	_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 32(%rax)
	movq	_brcmf_pcie_buscore_ops@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_brcmf_chip_attach
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	$0, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_1:
	negl	%r12d
	jmp	LBB0_23
LBB0_4:
	movl	(%r13), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	32(%rbx), %rdi
	addq	$8, %rdi
	movq	_BRCMF_BUSTYPE_PCIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_brcmf_get_module_param
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r13), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r12
	movl	(%r13), %esi
	movl	$88, %edi
	callq	_kzalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	movq	%r12, %r13
	je	LBB0_10
## %bb.11:
	movq	%rbx, 80(%r15)
	movq	%r13, 72(%r15)
	leaq	8(%r14), %r12
	movq	%r12, 24(%r13)
	movq	%r15, 64(%r13)
	movq	_brcmf_pcie_bus_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r13)
	movq	_BRCMF_PROTO_MSGBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movl	44(%rbx), %eax
	movl	%eax, 48(%r13)
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_pme_capable
	movl	%eax, 40(%r13)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_dev_set_drvdata
	movq	(%rbx), %rsi
	movq	32(%rbx), %rdi
	addq	$8, %rdi
	callq	_brcmf_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_12
LBB0_16:
	movq	16(%r13), %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_5:
	xorl	%r15d, %r15d
LBB0_7:
	xorl	%r12d, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_10:
	xorl	%r12d, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_17:
	movq	%r13, %rdi
	callq	_kfree
LBB0_18:
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_brcmf_err
	movq	%rbx, %rdi
	callq	_brcmf_pcie_release_resource
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_brcmf_chip_detach
LBB0_20:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_brcmf_release_module_param
LBB0_22:
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
LBB0_23:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	callq	_brcmf_pcie_prepare_fw_request
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	24(%r13), %rdi
	movq	_brcmf_pcie_setup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_brcmf_fw_get_firmwares
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_23
## %bb.15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r12d
	callq	_kfree
	jmp	LBB0_16
LBB0_13:
	xorl	%r12d, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE,4,2                       ## @PCIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter %x:%x\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_brcmf_pcie_buscore_ops,4,2     ## @brcmf_pcie_buscore_ops
	.comm	_BRCMF_BUSTYPE_PCIE,4,2         ## @BRCMF_BUSTYPE_PCIE
	.comm	_brcmf_pcie_bus_ops,4,2         ## @brcmf_pcie_bus_ops
	.comm	_BRCMF_PROTO_MSGBUF,4,2         ## @BRCMF_PROTO_MSGBUF
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_brcmf_pcie_setup,4,2           ## @brcmf_pcie_setup
L_.str.1:                               ## @.str.1
	.asciz	"failed %x:%x\n"

	.no_dead_strip	_brcmf_pcie_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_probe
_brcmf_pcie_probe:                      ; @brcmf_pcie_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x8, _PCIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w3, w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh5:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	ldr	w21, [x25]
Lloh7:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #32]
Lloh9:
	adrp	x1, _brcmf_pcie_buscore_ops@GOTPAGE
Lloh10:
	ldr	x1, [x1, _brcmf_pcie_buscore_ops@GOTPAGEOFF]
	bl	_brcmf_chip_attach
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	mov	x21, #0
	str	xzr, [x19, #8]
	b	LBB0_13
LBB0_3:
	neg	w22, w21
	b	LBB0_18
LBB0_4:
	ldr	w1, [x22]
	mov	w0, #88
	bl	_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x19, #32]
	add	x0, x8, #8
Lloh11:
	adrp	x8, _BRCMF_BUSTYPE_PCIE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRCMF_BUSTYPE_PCIE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldp	w3, w2, [x8]
	bl	_brcmf_get_module_param
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w1, [x22]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	ldr	w1, [x22]
	mov	w0, #88
	bl	_kzalloc
	str	x0, [x23, #16]
	cbz	x0, LBB0_11
; %bb.8:
	stp	x23, x19, [x21, #72]
	add	x22, x20, #8
Lloh14:
	adrp	x8, _brcmf_pcie_bus_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _brcmf_pcie_bus_ops@GOTPAGEOFF]
	str	x22, [x23, #24]
	stp	x8, x21, [x23, #56]
Lloh16:
	adrp	x8, _BRCMF_PROTO_MSGBUF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BRCMF_PROTO_MSGBUF@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19, #44]
	stp	w9, w8, [x23, #48]
Lloh19:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_pme_capable
	str	w0, [x23, #40]
	mov	x0, x22
	mov	x1, x23
	bl	_dev_set_drvdata
	ldr	x8, [x19, #32]
	add	x0, x8, #8
	ldr	x1, [x19]
	bl	_brcmf_alloc
	mov	x22, x0
	cbz	w0, LBB0_19
LBB0_9:
	ldr	x0, [x23, #16]
	bl	_kfree
	b	LBB0_12
LBB0_10:
	ldr	w8, [x25]
	neg	w22, w8
	b	LBB0_13
LBB0_11:
	ldr	w8, [x25]
	neg	w22, w8
LBB0_12:
	mov	x0, x23
	bl	_kfree
LBB0_13:
	ldp	w3, w2, [x20]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_brcmf_err
	mov	x0, x19
	bl	_brcmf_pcie_release_resource
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_brcmf_chip_detach
LBB0_15:
	ldr	x0, [x19]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_brcmf_release_module_param
LBB0_17:
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_18:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	bl	_brcmf_pcie_prepare_fw_request
	cbz	x0, LBB0_22
; %bb.20:
	mov	x24, x0
	ldr	x0, [x23, #24]
Lloh24:
	adrp	x8, _brcmf_pcie_setup@GOTPAGE
Lloh25:
	ldr	x8, [x8, _brcmf_pcie_setup@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_brcmf_fw_get_firmwares
	tbnz	w0, #31, LBB0_23
; %bb.21:
	mov	w22, #0
	b	LBB0_18
LBB0_22:
	ldr	w8, [x25]
	neg	w22, w8
	b	LBB0_9
LBB0_23:
	mov	x22, x0
	mov	x0, x24
	bl	_kfree
	b	LBB0_9
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE,4,2                       ; @PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter %x:%x\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_brcmf_pcie_buscore_ops,4,2     ; @brcmf_pcie_buscore_ops
	.comm	_BRCMF_BUSTYPE_PCIE,4,2         ; @BRCMF_BUSTYPE_PCIE
	.comm	_brcmf_pcie_bus_ops,4,2         ; @brcmf_pcie_bus_ops
	.comm	_BRCMF_PROTO_MSGBUF,4,2         ; @BRCMF_PROTO_MSGBUF
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_brcmf_pcie_setup,4,2           ; @brcmf_pcie_setup
l_.str.1:                               ; @.str.1
	.asciz	"failed %x:%x\n"

	.no_dead_strip	_brcmf_pcie_probe
.subsections_via_symbols
