	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_set_gen_ie_helper
_mwifiex_set_gen_ie_helper:             ## @mwifiex_set_gen_ie_helper
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.mwifiex_set_gen_ie_helper.wpa_oui(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	L___const.mwifiex_set_gen_ie_helper.wps_oui(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.3:
	movl	%edx, %r15d
	cmpl	$5, %edx
	jae	LBB0_4
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_mwifiex_set_wpa_ie
	movl	$0, 20(%r14)
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	subl	%r13d, %r15d
	leaq	(%rbx,%r12,4), %rbx
	cmpl	$4, %r15d
	jbe	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r13d
	addl	$4, %r13d
	movq	8(%rbx), %rax
	movslq	%r13d, %r12
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_WLAN_EID_BSS_AC_ACCESS_DELAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_mwifiex_set_wapi_ie
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	16(%rbx), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	movl	$16, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r14), %rdi
	movl	$8, %eax
	subq	%rdi, %rax
	cmpq	%r12, %rax
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	8(%r14), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addl	%r13d, (%r14)
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, 20(%r14)
	movl	16(%r14), %edi
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_mwifiex_set_wps_ie
	jmp	LBB0_14
LBB0_1:
	movl	$0, (%r14)
	movl	$0, 20(%r14)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.mwifiex_set_gen_ie_helper.wpa_oui
L___const.mwifiex_set_gen_ie_helper.wpa_oui:
	.long	0                               ## 0x0
	.long	80                              ## 0x50
	.long	242                             ## 0xf2
	.long	1                               ## 0x1

	.p2align	4                               ## @__const.mwifiex_set_gen_ie_helper.wps_oui
L___const.mwifiex_set_gen_ie_helper.wps_oui:
	.long	0                               ## 0x0
	.long	80                              ## 0x50
	.long	242                             ## 0xf2
	.long	4                               ## 0x4

	.comm	_WLAN_EID_RSN,8,3               ## @WLAN_EID_RSN
	.comm	_WLAN_EID_BSS_AC_ACCESS_DELAY,8,3 ## @WLAN_EID_BSS_AC_ACCESS_DELAY
	.comm	_WLAN_EID_VENDOR_SPECIFIC,8,3   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_MSG,4,2                        ## @MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS Session Enabled.\n"

	.no_dead_strip	_mwifiex_set_gen_ie_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_set_gen_ie_helper
_mwifiex_set_gen_ie_helper:             ; @mwifiex_set_gen_ie_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.mwifiex_set_gen_ie_helper.wpa_oui@PAGE
Lloh4:
	add	x8, x8, l___const.mwifiex_set_gen_ie_helper.wpa_oui@PAGEOFF
Lloh5:
	ldr	q1, [x8]
Lloh6:
	adrp	x8, l___const.mwifiex_set_gen_ie_helper.wps_oui@PAGE
Lloh7:
	add	x8, x8, l___const.mwifiex_set_gen_ie_helper.wps_oui@PAGEOFF
Lloh8:
	ldr	q0, [x8]
	stp	q0, q1, [sp]
	cbz	w2, LBB0_15
; %bb.1:
	mov	x21, x1
	mov	w0, #-1
	cbz	x1, LBB0_17
; %bb.2:
	mov	x20, x2
	cmp	w2, #5
	b.lo	LBB0_17
; %bb.3:
Lloh9:
	adrp	x25, _WLAN_EID_RSN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh11:
	adrp	x26, _WLAN_EID_BSS_AC_ACCESS_DELAY@GOTPAGE
Lloh12:
	ldr	x26, [x26, _WLAN_EID_BSS_AC_ACCESS_DELAY@GOTPAGEOFF]
Lloh13:
	adrp	x27, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh14:
	ldr	x27, [x27, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh15:
	adrp	x22, l_.str@PAGE
Lloh16:
	add	x22, x22, l_.str@PAGEOFF
	mov	w28, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mwifiex_set_wpa_ie
	str	wzr, [x19, #20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w20, w20, w23
	add	x21, x21, w23, sxtw #2
	cmp	w20, #4
	b.ls	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w23, w8, #4
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mwifiex_set_wapi_ie
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x21, #16
	add	x1, sp, #16
	mov	x0, x24
	mov	w2, #16
	bl	_memcmp
	cbz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, sp
	mov	x0, x24
	mov	w2, #16
	bl	_memcmp
	cbz	w0, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x19]
	sub	x9, x28, x8
	cmp	x9, w23, sxtw
	b.ls	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w23
	str	w8, [x19]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x19, #20]
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x8, _MSG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_mwifiex_dbg
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mwifiex_set_wps_ie
	b	LBB0_5
LBB0_15:
	mov	w0, #0
	str	wzr, [x19]
	str	wzr, [x19, #20]
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.mwifiex_set_gen_ie_helper.wpa_oui
l___const.mwifiex_set_gen_ie_helper.wpa_oui:
	.long	0                               ; 0x0
	.long	80                              ; 0x50
	.long	242                             ; 0xf2
	.long	1                               ; 0x1

	.p2align	2                               ; @__const.mwifiex_set_gen_ie_helper.wps_oui
l___const.mwifiex_set_gen_ie_helper.wps_oui:
	.long	0                               ; 0x0
	.long	80                              ; 0x50
	.long	242                             ; 0xf2
	.long	4                               ; 0x4

	.comm	_WLAN_EID_RSN,8,3               ; @WLAN_EID_RSN
	.comm	_WLAN_EID_BSS_AC_ACCESS_DELAY,8,3 ; @WLAN_EID_BSS_AC_ACCESS_DELAY
	.comm	_WLAN_EID_VENDOR_SPECIFIC,8,3   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_MSG,4,2                        ; @MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS Session Enabled.\n"

	.no_dead_strip	_mwifiex_set_gen_ie_helper
.subsections_via_symbols
