	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_set_default_key
_mwifiex_cfg80211_set_default_key:      ## @mwifiex_cfg80211_set_default_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rdi
	callq	_mwifiex_netdev_get_priv
	xorl	%r14d, %r14d
	cmpl	$0, 16(%rax)
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_MWIFIEX_BSS_TYPE_UAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	%r15d, 12(%rbx)
	jmp	LBB0_5
LBB0_3:
	movl	$0, (%rsp)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_mwifiex_set_encode
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_TYPE_UAP,8,3       ## @MWIFIEX_BSS_TYPE_UAP
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set default Tx key index\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_mwifiex_cfg80211_set_default_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_set_default_key
_mwifiex_cfg80211_set_default_key:      ; @mwifiex_cfg80211_set_default_key
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x0, x1
	bl	_mwifiex_netdev_get_priv
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MWIFIEX_BSS_TYPE_UAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWIFIEX_BSS_TYPE_UAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	str	w20, [x19, #12]
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	mov	x4, x20
	mov	x5, #0
	mov	w6, #0
	bl	_mwifiex_set_encode
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_TYPE_UAP,8,3       ; @MWIFIEX_BSS_TYPE_UAP
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set default Tx key index\n"

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