	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_encode             ## -- Begin function mwifiex_set_encode
	.p2align	4, 0x90
_mwifiex_set_encode:                    ## @mwifiex_set_encode
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%ebx, -80(%rbp)
	movl	%r14d, -44(%rbp)
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_WLAN_CIPHER_SUITE_AES_CMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$1, -76(%rbp)
LBB0_3:
	cmpl	$0, 16(%rbp)
	je	LBB0_4
## %bb.13:
	movl	$1, -60(%rbp)
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movl	-56(%rbp), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_memcpy
	jmp	LBB0_15
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movl	-48(%rbp), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_9
LBB0_8:
	movl	-56(%rbp), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_memcpy
LBB0_9:
	testq	%r12, %r12
	je	LBB0_15
## %bb.10:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.11:
	movl	8(%r12), %edx
	testl	%edx, %edx
	je	LBB0_15
## %bb.12:
	movl	-52(%rbp), %edi
	callq	_memcpy
	movl	8(%r12), %eax
	movl	%eax, -68(%rbp)
	movl	$1, -64(%rbp)
LBB0_15:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mwifiex_sec_ioctl_encrypt_key
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, -72(%rbp)
	testq	%r15, %r15
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ## @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_set_encode             ; -- Begin function mwifiex_set_encode
	.p2align	2
_mwifiex_set_encode:                    ; @mwifiex_set_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x24, x6
	mov	x21, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	w22, [sp, #8]
	str	w25, [sp, #44]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_3:
	cbz	w24, LBB0_6
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #28]
	cbz	x21, LBB0_13
; %bb.5:
	ldr	w0, [sp, #32]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
	b	LBB0_13
LBB0_6:
	cbz	w22, LBB0_14
; %bb.7:
	ldr	w0, [sp, #40]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	cbz	x21, LBB0_9
LBB0_8:
	ldr	w0, [sp, #32]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
LBB0_9:
	cbz	x20, LBB0_13
; %bb.10:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_13
; %bb.11:
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_13
; %bb.12:
	ldr	w0, [sp, #36]
	bl	_memcpy
	ldr	w8, [x20, #8]
	mov	w9, #1
	stp	w8, w9, [sp, #20]
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mwifiex_sec_ioctl_encrypt_key
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	mov	w8, #1
	str	w8, [sp, #16]
	cbnz	x21, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ; @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
