	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_bus_started
_brcmf_bus_started:                     ## @brcmf_bus_started
	.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	%rsi, %r13
	movq	%rdi, %r14
	movq	40(%rdi), %rbx
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	leaq	L_.str.1(%rip), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_brcmf_add_if
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_BRCMF_BUS_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_brcmf_bus_change_state
	movq	%rbx, %rdi
	callq	_brcmf_bus_preinit
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_brcmf_c_preinit_dcmds
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_brcmf_feat_attach
	movq	%r14, %rdi
	callq	_brcmf_proto_init_done
	testl	%eax, %eax
	js	LBB0_2
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_brcmf_proto_add_if
	movq	(%r14), %rax
	movq	8(%rax), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_brcmf_cfg80211_attach
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_brcmf_net_attach
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_2:
	movl	%eax, %r12d
	xorl	%r13d, %r13d
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_bphy_err
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_brcmf_cfg80211_detach
	movq	$0, 16(%r14)
LBB0_9:
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_brcmf_net_detach
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_brcmf_net_detach
LBB0_11:
	movq	8(%r14), %rax
	movq	$0, (%rax)
	movq	8(%r14), %rax
	movq	$0, 8(%rax)
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	cmovel	%r12d, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_14:
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_17
## %bb.15:
	movq	8(%r14), %rax
	movq	8(%rax), %r13
	testq	%r13, %r13
	je	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_brcmf_net_p2p_attach
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
LBB0_17:
	leaq	24(%r14), %rdi
	movq	_brcmf_core_bus_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_brcmf_revinfo_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_brcmf_debugfs_add_entry
	movq	%r14, %rdi
	callq	_brcmf_debugfs_get_devdir
	leaq	L_.str.3(%rip), %rdi
	movq	_bus_reset_fops@GOTPCREL(%rip), %r8
	movl	$384, %esi                      ## imm = 0x180
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_debugfs_create_file
	movq	%r14, %rdi
	callq	_brcmf_feat_debugfs_create
	movq	%r14, %rdi
	callq	_brcmf_proto_debugfs_create
	movq	%rbx, %rdi
	callq	_brcmf_bus_debugfs_create
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"wlan%d"

	.comm	_BRCMF_BUS_UP,4,2               ## @BRCMF_BUS_UP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_brcmf_core_bus_reset,4,2       ## @brcmf_core_bus_reset
L_.str.2:                               ## @.str.2
	.asciz	"revinfo"

	.comm	_brcmf_revinfo_read,4,2         ## @brcmf_revinfo_read
L_.str.3:                               ## @.str.3
	.asciz	"reset"

	.comm	_bus_reset_fops,4,2             ## @bus_reset_fops
L_.str.4:                               ## @.str.4
	.asciz	"failed: %d\n"

	.comm	_brcmf_inet6addr_changed,4,2    ## @brcmf_inet6addr_changed
	.comm	_brcmf_inetaddr_changed,4,2     ## @brcmf_inetaddr_changed
	.no_dead_strip	_brcmf_bus_started
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_bus_started
_brcmf_bus_started:                     ; @brcmf_bus_started
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh5:
	adrp	x4, l_.str.1@PAGE
Lloh6:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x5, #0
	bl	_brcmf_add_if
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh7:
	adrp	x8, _BRCMF_BUS_UP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMF_BUS_UP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_brcmf_bus_change_state
	mov	x0, x20
	bl	_brcmf_bus_preinit
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x21
	bl	_brcmf_c_preinit_dcmds
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_brcmf_feat_attach
	mov	x0, x19
	bl	_brcmf_proto_init_done
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_brcmf_proto_add_if
	ldr	x8, [x19]
	ldr	x2, [x8, #8]
	mov	x0, x19
	mov	x1, x23
	bl	_brcmf_cfg80211_attach
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x21
	mov	w1, #0
	bl	_brcmf_net_attach
	cbz	w0, LBB0_15
LBB0_7:
	mov	x22, x0
	mov	x23, #0
LBB0_8:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_bphy_err
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_brcmf_cfg80211_detach
	str	xzr, [x19, #16]
LBB0_10:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_brcmf_net_detach
	cbz	x23, LBB0_12
; %bb.11:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_brcmf_net_detach
LBB0_12:
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	ldr	x8, [x19, #8]
	str	xzr, [x8, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w0, w22, wzr, eq
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x23, #0
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_15:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	x8, [x19, #8]
	ldr	x23, [x8, #8]
	cbz	x23, LBB0_18
; %bb.17:
	mov	x0, x23
	bl	_brcmf_net_p2p_attach
	mov	x22, x0
	cbnz	w0, LBB0_8
LBB0_18:
	add	x0, x19, #24
Lloh15:
	adrp	x8, _brcmf_core_bus_reset@GOTPAGE
Lloh16:
	ldr	x8, [x8, _brcmf_core_bus_reset@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh18:
	adrp	x8, _brcmf_revinfo_read@GOTPAGE
Lloh19:
	ldr	x8, [x8, _brcmf_revinfo_read@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_brcmf_debugfs_add_entry
	mov	x0, x19
	bl	_brcmf_debugfs_get_devdir
	mov	x2, x0
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh25:
	adrp	x4, _bus_reset_fops@GOTPAGE
Lloh26:
	ldr	x4, [x4, _bus_reset_fops@GOTPAGEOFF]
	mov	w1, #384
	mov	x3, x19
	bl	_debugfs_create_file
	mov	x0, x19
	bl	_brcmf_feat_debugfs_create
	mov	x0, x19
	bl	_brcmf_proto_debugfs_create
	mov	x0, x20
	bl	_brcmf_bus_debugfs_create
	mov	w0, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"wlan%d"

	.comm	_BRCMF_BUS_UP,4,2               ; @BRCMF_BUS_UP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_brcmf_core_bus_reset,4,2       ; @brcmf_core_bus_reset
l_.str.2:                               ; @.str.2
	.asciz	"revinfo"

	.comm	_brcmf_revinfo_read,4,2         ; @brcmf_revinfo_read
l_.str.3:                               ; @.str.3
	.asciz	"reset"

	.comm	_bus_reset_fops,4,2             ; @bus_reset_fops
l_.str.4:                               ; @.str.4
	.asciz	"failed: %d\n"

	.comm	_brcmf_inet6addr_changed,4,2    ; @brcmf_inet6addr_changed
	.comm	_brcmf_inetaddr_changed,4,2     ; @brcmf_inetaddr_changed
	.no_dead_strip	_brcmf_bus_started
.subsections_via_symbols
