	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_spatial_reuse      ## -- Begin function hostapd_eid_spatial_reuse
	.p2align	4, 0x90
_hostapd_eid_spatial_reuse:             ## @hostapd_eid_spatial_reuse
	.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
	movq	(%rax), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	andl	%eax, %ecx
	movq	_SPATIAL_REUSE_SRG_INFORMATION_PRESENT@GOTPCREL(%rip), %r12
	andl	(%r12), %eax
	movl	$2, %eax
	movl	$20, %edx
	cmovel	%eax, %edx
	cmpl	$1, %ecx
	sbbl	$0, %edx
	movq	_WLAN_EID_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	incl	%edx
	movl	%edx, 4(%rbx)
	movq	_WLAN_EID_EXT_SPATIAL_REUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%rbx), %r15
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%rbx)
	movq	20(%rbx), %rcx
	testl	%edx, (%r13)
	je	LBB0_2
## %bb.3:
	addq	$20, %rbx
	movl	12(%rax), %edx
	movl	%edx, (%rcx)
	addq	$4, %rcx
	movl	(%r15), %edx
	testl	%edx, (%r12)
	je	LBB0_6
LBB0_5:
	movl	8(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rcx)
	addq	$72, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	$16, %rbx
	testl	%edx, (%r12)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT,4,2 ## @SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT
	.comm	_SPATIAL_REUSE_SRG_INFORMATION_PRESENT,4,2 ## @SPATIAL_REUSE_SRG_INFORMATION_PRESENT
	.comm	_WLAN_EID_EXTENSION,4,2         ## @WLAN_EID_EXTENSION
	.comm	_WLAN_EID_EXT_SPATIAL_REUSE,8,3 ## @WLAN_EID_EXT_SPATIAL_REUSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_spatial_reuse      ; -- Begin function hostapd_eid_spatial_reuse
	.p2align	2
_hostapd_eid_spatial_reuse:             ; @hostapd_eid_spatial_reuse
	.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	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	mov	w9, #1
	cinc	w9, w9, ne
Lloh2:
	adrp	x22, _SPATIAL_REUSE_SRG_INFORMATION_PRESENT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SPATIAL_REUSE_SRG_INFORMATION_PRESENT@GOTPAGEOFF]
	ldr	w10, [x22]
	add	w11, w9, #18
	tst	w10, w8
	csel	w8, w9, w11, eq
Lloh4:
	adrp	x9, _WLAN_EID_EXTENSION@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WLAN_EID_EXTENSION@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w8, w8, #1
	stp	w9, w8, [x19]
Lloh7:
	adrp	x8, _WLAN_EID_EXT_SPATIAL_REUSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WLAN_EID_EXT_SPATIAL_REUSE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x21, x19, #12
	str	w8, [x19, #8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w10, [x8]
	str	w10, [x19, #12]
	ldr	x9, [x19, #20]!
	ldr	w11, [x23]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.2:
	ldr	w10, [x8, #12]
	str	w10, [x9], #4
	ldr	w10, [x21]
	b	LBB0_4
LBB0_3:
	sub	x19, x19, #4
LBB0_4:
	ldr	w11, [x22]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.5:
	ldr	w10, [x8, #8]
	str	w10, [x9]
	ldr	w8, [x8, #4]
	str	w8, [x9, #4]
	add	x19, x19, #72
LBB0_6:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT,4,2 ; @SPATIAL_REUSE_NON_SRG_OFFSET_PRESENT
	.comm	_SPATIAL_REUSE_SRG_INFORMATION_PRESENT,4,2 ; @SPATIAL_REUSE_SRG_INFORMATION_PRESENT
	.comm	_WLAN_EID_EXTENSION,4,2         ; @WLAN_EID_EXTENSION
	.comm	_WLAN_EID_EXT_SPATIAL_REUSE,8,3 ; @WLAN_EID_EXT_SPATIAL_REUSE
.subsections_via_symbols
