	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cmd_append_wps_ie
_mwifiex_cmd_append_wps_ie:             ## @mwifiex_cmd_append_wps_ie
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	(%rsi), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.2:
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:
	movl	16(%r14), %edi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_TLV_TYPE_PASSTHROUGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movq	(%r15), %rdi
	leaq	-40(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r15), %rdi
	addq	$64, %rdi
	movq	%rdi, (%r15)
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	callq	_memcpy
	movslq	(%r14), %rax
	leal	16(%rax), %ebx
	shlq	$2, %rax
	addq	%rax, (%r15)
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	8(%r14), %rdi
	callq	_kfree
	movl	$0, (%r14)
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD,4,2                        ## @CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd: append wps ie %d to %p\n"

	.comm	_TLV_TYPE_PASSTHROUGH,4,2       ## @TLV_TYPE_PASSTHROUGH
	.no_dead_strip	_mwifiex_cmd_append_wps_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cmd_append_wps_ie
_mwifiex_cmd_append_wps_ie:             ; @mwifiex_cmd_append_wps_ie
	.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, x1
	cbz	x1, LBB0_7
; %bb.1:
	ldr	x4, [x20]
	cbz	x4, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	w3, [x0]
	cbz	w3, LBB0_5
; %bb.3:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh5:
	adrp	x8, _TLV_TYPE_PASSTHROUGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLV_TYPE_PASSTHROUGH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [sp]
	ldr	x0, [x20]
	mov	x1, sp
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	add	x0, x8, #64
	str	x0, [x20]
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	bl	_memcpy
	ldrsw	x8, [x19]
	ldr	x9, [x20]
	add	x9, x9, x8, lsl #2
	str	x9, [x20]
	add	w20, w8, #16
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	wzr, [x19]
LBB0_7:
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD,4,2                        ; @CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd: append wps ie %d to %p\n"

	.comm	_TLV_TYPE_PASSTHROUGH,4,2       ; @TLV_TYPE_PASSTHROUGH
	.no_dead_strip	_mwifiex_cmd_append_wps_ie
.subsections_via_symbols
