	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_config_dongle
_brcmf_config_dongle:                   ## @brcmf_config_dongle
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_cfg_to_ndev
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_BRCMF_C_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_brcmf_fil_cmd_int_set
	movq	%r15, %rdi
	callq	_brcmf_dongle_scantime
	cmpq	$0, 8(%r13)
	jne	LBB0_2
## %bb.3:
	movq	_PM_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_PM_FAST@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	_BRCMF_C_SET_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_brcmf_fil_cmd_int_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	%r15, %rdi
	callq	_brcmf_dongle_roam
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_brcmf_cfg80211_change_iface
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_brcmf_configure_arp_nd_offload
	movq	_BRCMF_C_SET_FAKEFRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_brcmf_fil_cmd_int_set
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bphy_err
	jmp	LBB0_10
LBB0_9:
	movl	$1, (%r13)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_C_UP,4,2                 ## @BRCMF_C_UP
	.comm	_PM_FAST,4,2                    ## @PM_FAST
	.comm	_PM_OFF,4,2                     ## @PM_OFF
	.comm	_BRCMF_C_SET_PM,4,2             ## @BRCMF_C_SET_PM
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power save set to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.comm	_BRCMF_C_SET_FAKEFRAG,4,2       ## @BRCMF_C_SET_FAKEFRAG
L_.str.3:                               ## @.str.3
	.asciz	"failed to set frameburst mode\n"

	.no_dead_strip	_brcmf_config_dongle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_config_dongle
_brcmf_config_dongle:                   ; @brcmf_config_dongle
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_8
LBB0_2:
	mov	x20, x0
	ldr	x19, [x0, #16]
	bl	_cfg_to_ndev
	mov	x22, x0
	ldr	x25, [x0]
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _BRCMF_C_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_C_UP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_brcmf_fil_cmd_int_set
	mov	x0, x21
	bl	_brcmf_dongle_scantime
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _PM_FAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PM_FAST@GOTPAGEOFF]
Lloh5:
	adrp	x10, _PM_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PM_OFF@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w24, [x8]
Lloh7:
	adrp	x8, _BRCMF_C_SET_PM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMF_C_SET_PM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	bl	_brcmf_fil_cmd_int_set
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.3:
Lloh10:
	adrp	x8, _INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w24, #0
	csel	x2, x9, x8, eq
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x21
	bl	_brcmf_dongle_roam
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldp	w2, w0, [x25]
	mov	x1, x22
	mov	x3, #0
	bl	_brcmf_cfg80211_change_iface
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	w22, #1
	mov	x0, x21
	mov	w1, #1
	bl	_brcmf_configure_arp_nd_offload
Lloh19:
	adrp	x8, _BRCMF_C_SET_FAKEFRAG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BRCMF_C_SET_FAKEFRAG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_brcmf_fil_cmd_int_set
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
	b	LBB0_8
LBB0_7:
	str	w22, [x20]
LBB0_8:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_C_UP,4,2                 ; @BRCMF_C_UP
	.comm	_PM_FAST,4,2                    ; @PM_FAST
	.comm	_PM_OFF,4,2                     ; @PM_OFF
	.comm	_BRCMF_C_SET_PM,4,2             ; @BRCMF_C_SET_PM
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power save set to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.comm	_BRCMF_C_SET_FAKEFRAG,4,2       ; @BRCMF_C_SET_FAKEFRAG
l_.str.3:                               ; @.str.3
	.asciz	"failed to set frameburst mode\n"

	.no_dead_strip	_brcmf_config_dongle
.subsections_via_symbols
