	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_probe_cb
_brcmf_usb_probe_cb:                    ## @brcmf_usb_probe_cb
	.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	(%rdi), %r15
	movq	_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	_BRCMF_USB_NRXQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BRCMF_USB_NTXQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_brcmf_usb_attach
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r15, 16(%r12)
	movq	%r12, 8(%rbx)
	movq	%rbx, 40(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	_brcmf_usb_bus_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	_BRCMF_PROTO_BCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	$1, (%r12)
	movq	16(%r12), %rdi
	movq	_BRCMF_BUSTYPE_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	callq	_brcmf_get_module_param
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_brcmf_usb_dlneeded
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movl	4(%rbx), %eax
	movl	%eax, 12(%r12)
	movl	(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	%r14, %rdi
	callq	_brcmf_usb_prepare_fw_request
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r13
	movq	_brcmf_usb_probe_phase2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_brcmf_fw_get_firmwares
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_brcmf_err
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	(%r14), %rdi
	callq	_brcmf_free
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_brcmf_usb_detach
	jmp	LBB0_10
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r14), %rdi
	movl	12(%r14), %esi
	callq	_brcmf_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.12:
	movq	(%r14), %rdi
	callq	_brcmf_attach
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_complete
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_USB_NRXQ,4,2             ## @BRCMF_USB_NRXQ
	.comm	_BRCMF_USB_NTXQ,4,2             ## @BRCMF_USB_NTXQ
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_brcmf_usb_bus_ops,4,2          ## @brcmf_usb_bus_ops
	.comm	_BRCMF_PROTO_BCDC,4,2           ## @BRCMF_PROTO_BCDC
	.comm	_BRCMF_BUSTYPE_USB,4,2          ## @BRCMF_BUSTYPE_USB
	.comm	_brcmf_usb_probe_phase2,4,2     ## @brcmf_usb_probe_phase2
L_.str.1:                               ## @.str.1
	.asciz	"firmware request failed: %d\n"

	.no_dead_strip	_brcmf_usb_probe_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_probe_cb
_brcmf_usb_probe_cb:                    ; @brcmf_usb_probe_cb
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh5:
	adrp	x8, _BRCMF_USB_NRXQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRCMF_USB_NRXQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _BRCMF_USB_NTXQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMF_USB_NTXQ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_brcmf_usb_attach
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	str	x21, [x20, #16]
	str	x20, [x22, #8]
	str	x22, [x20, #40]
	mov	x0, x21
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh14:
	adrp	x8, _brcmf_usb_bus_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _brcmf_usb_bus_ops@GOTPAGEOFF]
	str	x8, [x20, #32]
Lloh16:
	adrp	x8, _BRCMF_PROTO_BCDC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BRCMF_PROTO_BCDC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	ldr	x0, [x20, #16]
Lloh19:
	adrp	x8, _BRCMF_BUSTYPE_USB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BRCMF_BUSTYPE_USB@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldp	w3, w2, [x22]
	bl	_brcmf_get_module_param
	str	w0, [x19, #12]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_brcmf_usb_dlneeded
	cbz	w0, LBB0_11
; %bb.4:
	ldr	d0, [x22]
	str	d0, [x20, #8]
	mov	x0, x19
	bl	_brcmf_usb_prepare_fw_request
	cbz	x0, LBB0_7
; %bb.5:
	mov	x22, x0
Lloh22:
	adrp	x8, _brcmf_usb_probe_phase2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _brcmf_usb_probe_phase2@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_brcmf_fw_get_firmwares
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_brcmf_err
	mov	x0, x22
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	ldr	x0, [x19]
	bl	_brcmf_free
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_brcmf_usb_detach
	b	LBB0_10
LBB0_9:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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
LBB0_11:
	ldr	x0, [x19]
	ldr	w1, [x19, #12]
	bl	_brcmf_alloc
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.12:
	ldr	x0, [x19]
	bl	_brcmf_attach
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.13:
	add	x0, x19, #8
	bl	_complete
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_USB_NRXQ,4,2             ; @BRCMF_USB_NRXQ
	.comm	_BRCMF_USB_NTXQ,4,2             ; @BRCMF_USB_NTXQ
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_brcmf_usb_bus_ops,4,2          ; @brcmf_usb_bus_ops
	.comm	_BRCMF_PROTO_BCDC,4,2           ; @BRCMF_PROTO_BCDC
	.comm	_BRCMF_BUSTYPE_USB,4,2          ; @BRCMF_BUSTYPE_USB
	.comm	_brcmf_usb_probe_phase2,4,2     ; @brcmf_usb_probe_phase2
l_.str.1:                               ; @.str.1
	.asciz	"firmware request failed: %d\n"

	.no_dead_strip	_brcmf_usb_probe_cb
.subsections_via_symbols
