	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_add_key
_mwifiex_cfg80211_add_key:              ## @mwifiex_cfg80211_add_key
	.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
	movq	%r9, %r12
	movq	%r8, %r13
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %rdi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	leaq	_mwifiex_cfg80211_add_key.bc_mac(%rip), %rbx
	cmovneq	%r13, %rbx
	movq	%rax, %rdi
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_UAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	(%r12), %rax
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_6:
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %r8d
	movq	%rbx, %r9
	callq	_mwifiex_set_encode
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
	cmpl	$0, 12(%r12)
	je	LBB0_9
## %bb.4:
	cmpl	$0, 8(%r12)
	je	LBB0_9
## %bb.5:
	movq	8(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %r13
	leaq	(%rcx,%r13,4), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r13,4), %edi
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	callq	_memcpy
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx,%r13,4)
	movl	8(%r12), %eax
	movl	%eax, 4(%rcx,%r13,4)
	movl	$1, 4(%r14)
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mwifiex_cfg80211_add_key.bc_mac
_mwifiex_cfg80211_add_key.bc_mac:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ## @MWIFIEX_BSS_ROLE_UAP
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crypto keys added\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_mwifiex_cfg80211_add_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_add_key
_mwifiex_cfg80211_add_key:              ; @mwifiex_cfg80211_add_key
	.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	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x0, x1
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _mwifiex_cfg80211_add_key.bc_mac@PAGE
Lloh1:
	add	x8, x8, _mwifiex_cfg80211_add_key.bc_mac@PAGEOFF
	cmp	w23, #0
	csel	x22, x8, x22, eq
	bl	_GET_BSS_ROLE
Lloh2:
	adrp	x8, _MWIFIEX_BSS_ROLE_UAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_UAP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	mov	w9, #12
	smaddl	x22, w20, w9, x8
	mov	x0, x22
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x22, #8]
	ldp	w2, w1, [x21, #8]
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x21, #8]
	stp	w20, w8, [x22]
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_5:
	ldp	w3, w2, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x4, x20
	mov	x5, x22
	mov	w6, #0
	bl	_mwifiex_set_encode
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh16:
	adrp	x8, _EFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mwifiex_cfg80211_add_key.bc_mac
_mwifiex_cfg80211_add_key.bc_mac:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ; @MWIFIEX_BSS_ROLE_UAP
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crypto keys added\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_mwifiex_cfg80211_add_key
.subsections_via_symbols
