	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_reconfigure_wep
_brcmf_cfg80211_reconfigure_wep:        ## @brcmf_cfg80211_reconfigure_wep
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_BRCMF_MAX_DEFAULT_KEYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	(%r15), %rcx
	movq	(%rcx), %rsi
	movq	_CRYPTO_ALGO_WEP1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_CRYPTO_ALGO_WEP128@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	cmpq	%rdx, %rbx
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, %rbx
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	addq	$8, %rsi
	cmpq	%rcx, %rax
	jne	LBB0_6
	jmp	LBB0_14
LBB0_1:
	xorl	%ecx, %ecx
                                        ## implicit-def: $rsi
LBB0_2:
	cmpq	%rax, %rcx
	je	LBB0_14
## %bb.3:
	movq	%r15, %rdi
	callq	_send_key_to_dongle
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bphy_err                       ## TAILCALL
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_brcmf_fil_bsscfg_int_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	movq	_WEP_ENABLED@GOTPCREL(%rip), %rax
	movq	-32(%rbp), %rdx
	orq	(%rax), %rdx
	movq	%rdx, -32(%rbp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_brcmf_fil_bsscfg_int_set
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_bphy_err
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_MAX_DEFAULT_KEYS,8,3     ## @BRCMF_MAX_DEFAULT_KEYS
	.comm	_CRYPTO_ALGO_WEP1,8,3           ## @CRYPTO_ALGO_WEP1
	.comm	_CRYPTO_ALGO_WEP128,8,3         ## @CRYPTO_ALGO_WEP128
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting WEP key failed (%d)\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"get wsec error (%d)\n"

	.comm	_WEP_ENABLED,8,3                ## @WEP_ENABLED
L_.str.3:                               ## @.str.3
	.asciz	"set wsec error (%d)\n"

	.no_dead_strip	_brcmf_cfg80211_reconfigure_wep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_reconfigure_wep
_brcmf_cfg80211_reconfigure_wep:        ; @brcmf_cfg80211_reconfigure_wep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _BRCMF_MAX_DEFAULT_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_MAX_DEFAULT_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x10, [x20]
	ldr	x1, [x10]
Lloh3:
	adrp	x10, _CRYPTO_ALGO_WEP1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CRYPTO_ALGO_WEP1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _CRYPTO_ALGO_WEP128@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CRYPTO_ALGO_WEP128@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x1]
	cmp	x12, x10
	ccmp	x12, x11, #4, ne
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x1, x1, #8
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_13
LBB0_4:
	mov	x9, #0
                                        ; implicit-def: $x1
LBB0_5:
	cmp	x9, x8
	b.eq	LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_send_key_to_dongle
	cbz	x0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_bphy_err
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_brcmf_fil_bsscfg_int_get
	cbz	x0, LBB0_10
; %bb.9:
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _WEP_ENABLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WEP_ENABLED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	orr	x2, x9, x8
	str	x2, [sp, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_brcmf_fil_bsscfg_int_set
	cbz	x0, LBB0_13
; %bb.11:
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_bphy_err
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_MAX_DEFAULT_KEYS,8,3     ; @BRCMF_MAX_DEFAULT_KEYS
	.comm	_CRYPTO_ALGO_WEP1,8,3           ; @CRYPTO_ALGO_WEP1
	.comm	_CRYPTO_ALGO_WEP128,8,3         ; @CRYPTO_ALGO_WEP128
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting WEP key failed (%d)\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"get wsec error (%d)\n"

	.comm	_WEP_ENABLED,8,3                ; @WEP_ENABLED
l_.str.3:                               ; @.str.3
	.asciz	"set wsec error (%d)\n"

	.no_dead_strip	_brcmf_cfg80211_reconfigure_wep
.subsections_via_symbols
