	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_osen               ## -- Begin function hostapd_eid_osen
	.p2align	4, 0x90
_hostapd_eid_osen:                      ## @hostapd_eid_osen
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	cmpl	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rbx)
	leaq	8(%rbx), %rdi
	movq	_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WPA_PUT_BE24
	movq	_HS20_OSEN_OUI_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %rdi
	movl	%eax, 20(%rbx)
	movq	_RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSN_SELECTOR_PUT
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	leaq	(%rbx,%r15,4), %r12
	addq	$24, %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_WPA_PUT_LE16
	leaq	(%rbx,%r15,4), %rdi
	addq	$32, %rdi
	movq	_RSN_CIPHER_SUITE_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSN_SELECTOR_PUT
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	leaq	(%r12,%r13,4), %r15
	addq	$8, %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_WPA_PUT_LE16
	leaq	(%r12,%r13,4), %rdi
	addq	$16, %rdi
	movq	_RSN_AUTH_KEY_MGMT_OSEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSN_SELECTOR_PUT
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	leaq	(%r15,%r12,4), %rdi
	addq	$8, %rdi
	movq	(%r14), %rax
	movq	_RSN_NUM_REPLAY_COUNTERS_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	xorl	%esi, %esi
	cmpq	$0, 16(%rax)
	cmovnel	%ecx, %esi
	callq	_WPA_PUT_LE16
	leaq	(%r15,%r12,4), %rax
	addq	$16, %rax
	movq	%rax, %rcx
	subq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	shrq	$2, %rcx
	decl	%ecx
	movl	%ecx, 4(%rbx)
	movq	%rax, %rbx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ## @OUI_WFA
	.comm	_HS20_OSEN_OUI_TYPE,4,2         ## @HS20_OSEN_OUI_TYPE
	.comm	_RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED,4,2 ## @RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED
	.comm	_RSN_SELECTOR_LEN,4,2           ## @RSN_SELECTOR_LEN
	.comm	_RSN_CIPHER_SUITE_CCMP,4,2      ## @RSN_CIPHER_SUITE_CCMP
	.comm	_RSN_AUTH_KEY_MGMT_OSEN,4,2     ## @RSN_AUTH_KEY_MGMT_OSEN
	.comm	_RSN_NUM_REPLAY_COUNTERS_16,4,2 ## @RSN_NUM_REPLAY_COUNTERS_16
	.comm	_MGMT_FRAME_PROTECTION_REQUIRED,8,3 ## @MGMT_FRAME_PROTECTION_REQUIRED
	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ## @NO_MGMT_FRAME_PROTECTION
	.comm	_WPA_CAPABILITY_MFPC,4,2        ## @WPA_CAPABILITY_MFPC
	.comm	_WPA_CAPABILITY_MFPR,4,2        ## @WPA_CAPABILITY_MFPR
	.comm	_WPA_CAPABILITY_OCVC,4,2        ## @WPA_CAPABILITY_OCVC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_osen               ; -- Begin function hostapd_eid_osen
	.p2align	2
_hostapd_eid_osen:                      ; @hostapd_eid_osen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w8, [x8, #24]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x22, x19, #4
	str	w8, [x19]
	add	x0, x19, #8
Lloh3:
	adrp	x8, _OUI_WFA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OUI_WFA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WPA_PUT_BE24
Lloh6:
	adrp	x8, _HS20_OSEN_OUI_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HS20_OSEN_OUI_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x21, x19, #24
	str	w8, [x19, #20]
Lloh9:
	adrp	x8, _RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RSN_SELECTOR_PUT
Lloh12:
	adrp	x23, _RSN_SELECTOR_LEN@GOTPAGE
Lloh13:
	ldr	x23, [x23, _RSN_SELECTOR_LEN@GOTPAGEOFF]
	ldrsw	x8, [x23]
	add	x21, x21, x8, lsl #2
	mov	x0, x21
	mov	w1, #1
	bl	_WPA_PUT_LE16
	add	x21, x21, #8
Lloh14:
	adrp	x8, _RSN_CIPHER_SUITE_CCMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RSN_CIPHER_SUITE_CCMP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RSN_SELECTOR_PUT
	ldrsw	x8, [x23]
	add	x21, x21, x8, lsl #2
	mov	x0, x21
	mov	w1, #1
	bl	_WPA_PUT_LE16
	add	x21, x21, #8
Lloh17:
	adrp	x8, _RSN_AUTH_KEY_MGMT_OSEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RSN_AUTH_KEY_MGMT_OSEN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RSN_SELECTOR_PUT
	ldrsw	x8, [x23]
	add	x21, x21, x8, lsl #2
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
Lloh20:
	adrp	x9, _RSN_NUM_REPLAY_COUNTERS_16@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RSN_NUM_REPLAY_COUNTERS_16@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	mov	x0, x21
	bl	_WPA_PUT_LE16
	add	x8, x21, #8
	sub	x9, x8, x22
	lsr	x9, x9, #2
	sub	w9, w9, #1
	str	w9, [x19, #4]
	mov	x19, x8
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ; @OUI_WFA
	.comm	_HS20_OSEN_OUI_TYPE,4,2         ; @HS20_OSEN_OUI_TYPE
	.comm	_RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED,4,2 ; @RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED
	.comm	_RSN_SELECTOR_LEN,4,2           ; @RSN_SELECTOR_LEN
	.comm	_RSN_CIPHER_SUITE_CCMP,4,2      ; @RSN_CIPHER_SUITE_CCMP
	.comm	_RSN_AUTH_KEY_MGMT_OSEN,4,2     ; @RSN_AUTH_KEY_MGMT_OSEN
	.comm	_RSN_NUM_REPLAY_COUNTERS_16,4,2 ; @RSN_NUM_REPLAY_COUNTERS_16
	.comm	_MGMT_FRAME_PROTECTION_REQUIRED,8,3 ; @MGMT_FRAME_PROTECTION_REQUIRED
	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ; @NO_MGMT_FRAME_PROTECTION
	.comm	_WPA_CAPABILITY_MFPC,4,2        ; @WPA_CAPABILITY_MFPC
	.comm	_WPA_CAPABILITY_MFPR,4,2        ; @WPA_CAPABILITY_MFPR
	.comm	_WPA_CAPABILITY_OCVC,4,2        ; @WPA_CAPABILITY_OCVC
.subsections_via_symbols
