	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_net_attach               ## -- Begin function brcmf_net_attach
	.p2align	4, 0x90
_brcmf_net_attach:                      ## @brcmf_net_attach
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	32(%rdi), %r14
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movl	16(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	24(%r15), %rbx
	movq	_brcmf_netdev_ops_pri@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movl	16(%r14), %eax
	addl	%eax, 32(%rbx)
	movq	_brcmf_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	16(%rbx), %edi
	movl	16(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	8(%r14), %edi
	callq	_cfg_to_wiphy
	movl	%eax, %edi
	callq	_wiphy_net
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dev_net_set
	leaq	12(%r15), %rdi
	movq	__brcmf_set_multicast_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%r15), %rdi
	movq	__brcmf_update_ndtable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	callq	_register_netdevice
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_bphy_err
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	$0, (%rbx)
	movq	_EBADE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	callq	_register_netdev
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	_brcmf_cfg80211_free_netdev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	8(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_6:
	movl	%ebx, %eax
	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 mac=%pM\n"

	.comm	_brcmf_netdev_ops_pri,4,2       ## @brcmf_netdev_ops_pri
	.comm	_brcmf_ethtool_ops,4,2          ## @brcmf_ethtool_ops
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	__brcmf_set_multicast_list,4,2  ## @_brcmf_set_multicast_list
	.comm	__brcmf_update_ndtable,4,2      ## @_brcmf_update_ndtable
L_.str.1:                               ## @.str.1
	.asciz	"couldn't register the net device\n"

	.comm	_brcmf_cfg80211_free_netdev,4,2 ## @brcmf_cfg80211_free_netdev
	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"%s: Broadcom Dongle Host Driver\n"

	.comm	_EBADE,4,2                      ## @EBADE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_net_attach               ; -- Begin function brcmf_net_attach
	.p2align	2
_brcmf_net_attach:                      ; @brcmf_net_attach
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [x19]
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x21, [x19, #24]
Lloh5:
	adrp	x8, _brcmf_netdev_ops_pri@GOTPAGE
Lloh6:
	ldr	x8, [x8, _brcmf_netdev_ops_pri@GOTPAGEOFF]
	str	x8, [x21]
	ldr	w8, [x20, #16]
	ldr	w9, [x21, #32]
	add	w8, w9, w8
	str	w8, [x21, #32]
Lloh7:
	adrp	x8, _brcmf_ethtool_ops@GOTPAGE
Lloh8:
	ldr	x8, [x8, _brcmf_ethtool_ops@GOTPAGEOFF]
	str	x8, [x21, #24]
	ldr	w0, [x21, #16]
	ldr	w1, [x19, #16]
Lloh9:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x20, #8]
	bl	_cfg_to_wiphy
	bl	_wiphy_net
	mov	x1, x0
	mov	x0, x21
	bl	_dev_net_set
	add	x0, x19, #12
Lloh12:
	adrp	x8, __brcmf_set_multicast_list@GOTPAGE
Lloh13:
	ldr	x8, [x8, __brcmf_set_multicast_list@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #8
Lloh15:
	adrp	x8, __brcmf_update_ndtable@GOTPAGE
Lloh16:
	ldr	x8, [x8, __brcmf_update_ndtable@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x21
	cbz	w22, LBB0_3
; %bb.1:
	bl	_register_netdevice
	cbz	x0, LBB0_4
LBB0_2:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	str	xzr, [x21]
Lloh20:
	adrp	x8, _EBADE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBADE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	bl	_register_netdev
	cbnz	x0, LBB0_2
LBB0_4:
Lloh23:
	adrp	x8, _brcmf_cfg80211_free_netdev@GOTPAGE
Lloh24:
	ldr	x8, [x8, _brcmf_cfg80211_free_netdev@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21, #12]
Lloh26:
	adrp	x8, _INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldrsw	x2, [x21, #8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	mov	w0, #0
LBB0_5:
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, bsscfgidx=%d mac=%pM\n"

	.comm	_brcmf_netdev_ops_pri,4,2       ; @brcmf_netdev_ops_pri
	.comm	_brcmf_ethtool_ops,4,2          ; @brcmf_ethtool_ops
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	__brcmf_set_multicast_list,4,2  ; @_brcmf_set_multicast_list
	.comm	__brcmf_update_ndtable,4,2      ; @_brcmf_update_ndtable
l_.str.1:                               ; @.str.1
	.asciz	"couldn't register the net device\n"

	.comm	_brcmf_cfg80211_free_netdev,4,2 ; @brcmf_cfg80211_free_netdev
	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"%s: Broadcom Dongle Host Driver\n"

	.comm	_EBADE,4,2                      ; @EBADE
.subsections_via_symbols
