	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_netdev_open
_brcmf_netdev_open:                     ## @brcmf_netdev_open
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	(%r14), %r12
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	(%r12), %rax
	movq	_BRCMF_BUS_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	L_.str.2(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_brcmf_fil_iovar_int_get
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	_TOE_TX_CSUM_OL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_bphy_err
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_brcmf_cfg80211_up
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_bphy_err
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, bsscfgidx=%d\n"

	.comm	_BRCMF_BUS_UP,8,3               ## @BRCMF_BUS_UP
L_.str.1:                               ## @.str.1
	.asciz	"failed bus is not ready\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"toe_ol"

	.comm	_TOE_TX_CSUM_OL,4,2             ## @TOE_TX_CSUM_OL
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
L_.str.3:                               ## @.str.3
	.asciz	"failed to bring up cfg80211\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_brcmf_netdev_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_netdev_open
_brcmf_netdev_open:                     ; @brcmf_netdev_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x20]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x21, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _BRCMF_BUS_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMF_BUS_UP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_set
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_brcmf_fil_iovar_int_get
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _TOE_TX_CSUM_OL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TOE_TX_CSUM_OL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
Lloh18:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_6:
	str	w8, [x19]
	mov	x0, x19
	bl	_brcmf_cfg80211_up
	cbz	x0, LBB0_9
; %bb.7:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, bsscfgidx=%d\n"

	.comm	_BRCMF_BUS_UP,8,3               ; @BRCMF_BUS_UP
l_.str.1:                               ; @.str.1
	.asciz	"failed bus is not ready\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"toe_ol"

	.comm	_TOE_TX_CSUM_OL,4,2             ; @TOE_TX_CSUM_OL
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
l_.str.3:                               ; @.str.3
	.asciz	"failed to bring up cfg80211\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_brcmf_netdev_open
.subsections_via_symbols
