	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_misc_ioctl_gen_ie
_mwifiex_misc_ioctl_gen_ie:             ## @mwifiex_misc_ioctl_gen_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rdi), %r14
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.2:
	movq	_HostCmd_ACT_GEN_GET@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	4(%rdi), %edx
	movl	%edx, 4(%rbx)
	movl	8(%rbx), %eax
	movl	(%rdi), %esi
	movl	%eax, %edi
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_5:
	movl	4(%r14), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	4(%rbx), %edx
	movq	_ARP_FILTER_MAX_BUF_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_7
## %bb.6:
	movl	$0, (%r14)
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_9
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_9:
	movq	%r14, %rdi
	callq	_mwifiex_dbg
	movl	$-1, %r15d
	jmp	LBB0_10
LBB0_4:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_mwifiex_set_gen_ie_helper
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_7:
	movl	4(%r14), %edi
	movl	8(%rbx), %esi
	callq	_memcpy
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_ACT_GEN_GET,4,2        ## @HostCmd_ACT_GEN_GET
	.comm	_ARP_FILTER_MAX_BUF_SIZE,4,2    ## @ARP_FILTER_MAX_BUF_SIZE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid ARP filter size\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid IE type\n"

	.no_dead_strip	_mwifiex_misc_ioctl_gen_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_misc_ioctl_gen_ie
_mwifiex_misc_ioctl_gen_ie:             ; @mwifiex_misc_ioctl_gen_ie
	.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	x19, x1
	ldr	x20, [x0, #8]
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _HostCmd_ACT_GEN_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_ACT_GEN_GET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_8
; %bb.3:
	ldp	w1, w2, [x0]
	str	w2, [x19, #4]
	ldr	w0, [x19, #8]
	bl	_memcpy
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldr	w0, [x20, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x8, _ARP_FILTER_MAX_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARP_FILTER_MAX_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_9
; %bb.5:
	str	wzr, [x20]
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x20
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	ldp	w2, w1, [x19, #4]
	bl	_mwifiex_set_gen_ie_helper
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #8]
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x19, #4]
	str	w8, [x20]
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_ACT_GEN_GET,4,2        ; @HostCmd_ACT_GEN_GET
	.comm	_ARP_FILTER_MAX_BUF_SIZE,4,2    ; @ARP_FILTER_MAX_BUF_SIZE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid ARP filter size\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid IE type\n"

	.no_dead_strip	_mwifiex_misc_ioctl_gen_ie
.subsections_via_symbols
