	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_set_wsec_mode
_brcmf_set_wsec_mode:                   ## @brcmf_set_wsec_mode
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ndev_to_prof
	movq	(%r12), %r14
	cmpq	$0, 16(%r13)
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rcx
	movl	(%rcx), %edx
	leal	-128(%rdx), %esi
	cmpl	$4, %esi
	ja	LBB0_6
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_5:
	movq	_AES_ENABLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_WEP_ENABLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_7
LBB0_4:
	movq	_TKIP_ENABLED@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ebx
LBB0_10:
	movl	8(%r13), %r15d
	leal	-128(%r15), %edx
	cmpl	$4, %edx
	ja	LBB0_11
## %bb.13:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmpq	*%rdx
LBB0_15:
	movq	_AES_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.12:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
LBB0_17:
	movq	_WEP_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_TKIP_ENABLED@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r15d
LBB0_19:
	movq	_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_brcmf_dbg
	movl	32(%r13), %esi
	movl	36(%r13), %edi
	callq	_brcmf_find_wpsie
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.20:
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	testl	%ebx, %ebx
	jne	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r13)
	je	LBB0_24
## %bb.23:
	movq	_AES_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_24:
	orl	%r15d, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_brcmf_fil_bsscfg_int_set
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_bphy_err
	jmp	LBB0_27
LBB0_26:
	movq	(%r13), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	8(%r13), %eax
	movl	%eax, 4(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
LBB0_7:
	callq	_bphy_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_17
	.long	L0_1_set_14
	.long	L0_1_set_15
	.long	L0_1_set_15
	.end_data_region
                                        ## -- End function
	.comm	_WEP_ENABLED,4,2                ## @WEP_ENABLED
	.comm	_TKIP_ENABLED,4,2               ## @TKIP_ENABLED
	.comm	_AES_ENABLED,4,2                ## @AES_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid cipher pairwise (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid cipher group (%d)\n"

	.comm	_CONN,4,2                       ## @CONN
L_.str.2:                               ## @.str.2
	.asciz	"pval (%d) gval (%d)\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"error (%d)\n"

	.no_dead_strip	_brcmf_set_wsec_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_set_wsec_mode
_brcmf_set_wsec_mode:                   ; @brcmf_set_wsec_mode
	.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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x20
	bl	_ndev_to_prof
	mov	x21, x0
	ldr	x20, [x22]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w2, [x8]
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _AES_ENABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AES_ENABLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	w23, #0
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x8, _WEP_ENABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WEP_ENABLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	b	LBB0_14
LBB0_7:
Lloh8:
	adrp	x8, _TKIP_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TKIP_ENABLED@GOTPAGEOFF]
LBB0_8:
	ldr	w23, [x8]
LBB0_9:
	ldr	w24, [x19, #8]
	sub	w8, w24, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.10:
Lloh10:
	adrp	x9, lJTI0_1@PAGE
Lloh11:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
Lloh12:
	adrp	x8, _AES_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AES_ENABLED@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	cbz	w24, LBB0_18
; %bb.13:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x24
LBB0_14:
	bl	_bphy_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_25
LBB0_15:
Lloh19:
	adrp	x8, _WEP_ENABLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WEP_ENABLED@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh21:
	adrp	x8, _TKIP_ENABLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TKIP_ENABLED@GOTPAGEOFF]
LBB0_17:
	ldr	w24, [x8]
LBB0_18:
Lloh23:
	adrp	x8, _CONN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CONN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_brcmf_dbg
	ldp	w1, w0, [x19, #32]
	bl	_brcmf_find_wpsie
	cbnz	w24, LBB0_22
; %bb.19:
	cbz	x0, LBB0_22
; %bb.20:
	cbnz	w23, LBB0_22
; %bb.21:
	ldr	x8, [x19, #24]
Lloh28:
	adrp	x9, _AES_ENABLED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AES_ENABLED@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w23, wzr, w9, eq
LBB0_22:
	orr	w2, w23, w24
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_brcmf_fil_bsscfg_int_set
	mov	x22, x0
	cbz	w0, LBB0_24
; %bb.23:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_bphy_err
	b	LBB0_25
LBB0_24:
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	stp	w8, w9, [x21]
LBB0_25:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
                                        ; -- End function
	.comm	_WEP_ENABLED,4,2                ; @WEP_ENABLED
	.comm	_TKIP_ENABLED,4,2               ; @TKIP_ENABLED
	.comm	_AES_ENABLED,4,2                ; @AES_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid cipher pairwise (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid cipher group (%d)\n"

	.comm	_CONN,4,2                       ; @CONN
l_.str.2:                               ; @.str.2
	.asciz	"pval (%d) gval (%d)\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"error (%d)\n"

	.no_dead_strip	_brcmf_set_wsec_mode
.subsections_via_symbols
