	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_he_operation       ## -- Begin function hostapd_eid_he_operation
	.p2align	4, 0x90
_hostapd_eid_he_operation:              ## @hostapd_eid_he_operation
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	_WLAN_EID_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$7, 4(%r15)
	movq	_WLAN_EID_EXT_HE_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%r15), %rdi
	movl	%eax, 8(%r15)
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HE_OPERATION_DFLT_PE_DURATION_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	%edi, %edx
	shll	%cl, %edx
	testl	%edi, %edi
	cmovel	%edi, %edx
	cmpq	$0, 16(%rax)
	je	LBB0_3
## %bb.2:
	movq	_HE_OPERATION_TWT_REQUIRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_3:
	movq	_HE_OPERATION_RTS_THRESHOLD_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edi
	shll	%cl, %edi
	testl	%esi, %esi
	cmovel	%esi, %edi
	movl	8(%rax), %esi
	movq	_HE_OPERATION_BSS_COLOR_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %ebx
	shll	%cl, %ebx
	orl	%edi, %edx
	testl	%esi, %esi
	cmovel	%esi, %ebx
	orl	%edx, %ebx
	orl	%r12d, %ebx
	movl	12(%rax), %edi
	callq	_host_to_le16
	movl	%eax, 16(%r15)
	movl	%ebx, %edi
	callq	_host_to_le32
	movl	%eax, 12(%r15)
	addq	$36, %r15
LBB0_4:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_EXTENSION,4,2         ## @WLAN_EID_EXTENSION
	.comm	_WLAN_EID_EXT_HE_OPERATION,4,2  ## @WLAN_EID_EXT_HE_OPERATION
	.comm	_HE_OPERATION_DFLT_PE_DURATION_OFFSET,4,2 ## @HE_OPERATION_DFLT_PE_DURATION_OFFSET
	.comm	_HE_OPERATION_TWT_REQUIRED,4,2  ## @HE_OPERATION_TWT_REQUIRED
	.comm	_HE_OPERATION_RTS_THRESHOLD_OFFSET,4,2 ## @HE_OPERATION_RTS_THRESHOLD_OFFSET
	.comm	_HE_OPERATION_BSS_COLOR_OFFSET,4,2 ## @HE_OPERATION_BSS_COLOR_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_he_operation       ; -- Begin function hostapd_eid_he_operation
	.p2align	2
_hostapd_eid_he_operation:              ; @hostapd_eid_he_operation
	.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	x8, [x0]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _WLAN_EID_EXTENSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_EXTENSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #7
	stp	w8, w9, [x19]
Lloh3:
	adrp	x8, _WLAN_EID_EXT_HE_OPERATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_EXT_HE_OPERATION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x0, x19, #12
	str	w8, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _HE_OPERATION_DFLT_PE_DURATION_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HE_OPERATION_DFLT_PE_DURATION_OFFSET@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh8:
	ldr	w9, [x9]
	ldp	w10, w11, [x8]
	lsl	w9, w10, w9
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	ldr	x10, [x8, #16]
	cmp	x10, #0
Lloh9:
	adrp	x10, _HE_OPERATION_TWT_REQUIRED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HE_OPERATION_TWT_REQUIRED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _HE_OPERATION_RTS_THRESHOLD_OFFSET@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HE_OPERATION_RTS_THRESHOLD_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w11, w10
	cmp	w11, #0
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _HE_OPERATION_BSS_COLOR_OFFSET@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HE_OPERATION_BSS_COLOR_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ldp	w11, w0, [x8, #8]
	lsl	w8, w11, w10
	cmp	w11, #0
	csel	w8, wzr, w8, eq
	orr	w20, w9, w8
	bl	_host_to_le16
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_host_to_le32
	str	w0, [x19, #12]
	add	x19, x19, #36
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_EXTENSION,4,2         ; @WLAN_EID_EXTENSION
	.comm	_WLAN_EID_EXT_HE_OPERATION,4,2  ; @WLAN_EID_EXT_HE_OPERATION
	.comm	_HE_OPERATION_DFLT_PE_DURATION_OFFSET,4,2 ; @HE_OPERATION_DFLT_PE_DURATION_OFFSET
	.comm	_HE_OPERATION_TWT_REQUIRED,4,2  ; @HE_OPERATION_TWT_REQUIRED
	.comm	_HE_OPERATION_RTS_THRESHOLD_OFFSET,4,2 ; @HE_OPERATION_RTS_THRESHOLD_OFFSET
	.comm	_HE_OPERATION_BSS_COLOR_OFFSET,4,2 ; @HE_OPERATION_BSS_COLOR_OFFSET
.subsections_via_symbols
