	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_vht_capabilities   ## -- Begin function hostapd_eid_vht_capabilities
	.p2align	4, 0x90
_hostapd_eid_vht_capabilities:          ## @hostapd_eid_vht_capabilities
	.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), %rcx
	movq	24(%rcx), %r13
	testq	%r13, %r13
	je	LBB0_13
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	(%r13), %rax
	movq	_HOSTAPD_MODE_IEEE80211G@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_10
## %bb.2:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_4
LBB0_10:
	movq	_WLAN_EID_VHT_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	8(%rbx), %r12
	movl	$8, 4(%rbx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_host_to_le32
	movl	%eax, 12(%rbx)
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movl	%eax, %edi
	callq	_le_to_host32
	movq	_VHT_CAP_BEAMFORMEE_STS_OFFSET@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	sarl	%cl, %eax
	andl	$7, %eax
	shll	%cl, %eax
	movl	%eax, %edi
	callq	_host_to_le32
	notl	%eax
	andl	%eax, 12(%rbx)
	movb	(%r15), %cl
	shll	%cl, %r14d
	movl	%r14d, %edi
	callq	_host_to_le32
	orl	%eax, 12(%rbx)
LBB0_12:
	movl	16(%r13), %esi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_os_memcpy
	addq	$40, %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$24, %rax
	decq	%rcx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	%rax, %r13
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_WLAN_EID_VHT_CAP,4,2           ## @WLAN_EID_VHT_CAP
	.comm	_VHT_CAP_BEAMFORMEE_STS_OFFSET,4,2 ## @VHT_CAP_BEAMFORMEE_STS_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_vht_capabilities   ; -- Begin function hostapd_eid_vht_capabilities
	.p2align	2
_hostapd_eid_vht_capabilities:          ; @hostapd_eid_vht_capabilities
	.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	x9, [x0]
	ldr	x23, [x9, #24]
	cbz	x23, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x23]
Lloh0:
	adrp	x10, _HOSTAPD_MODE_IEEE80211G@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HOSTAPD_MODE_IEEE80211G@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _WLAN_EID_VHT_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_VHT_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x22, x19, #8
	mov	w9, #8
	stp	w8, w9, [x19]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_host_to_le32
	str	w0, [x19, #12]
	cbz	w20, LBB0_6
; %bb.5:
	bl	_le_to_host32
Lloh6:
	adrp	x21, _VHT_CAP_BEAMFORMEE_STS_OFFSET@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VHT_CAP_BEAMFORMEE_STS_OFFSET@GOTPAGEOFF]
	ldr	w8, [x21]
	asr	w9, w0, w8
	and	w9, w9, #0x7
	lsl	w0, w9, w8
	bl	_host_to_le32
	ldr	w8, [x19, #12]
	bic	w8, w8, w0
	str	w8, [x19, #12]
	ldr	w8, [x21]
	lsl	w0, w20, w8
	bl	_host_to_le32
	ldr	w8, [x19, #12]
	orr	w8, w8, w0
	str	w8, [x19, #12]
LBB0_6:
	ldr	w1, [x23, #16]
	mov	x0, x22
	mov	w2, #8
	bl	_os_memcpy
	add	x19, x19, #40
LBB0_7:
	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
LBB0_8:
	ldr	x8, [x9, #16]
	cbz	x8, LBB0_4
; %bb.9:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.10:
Lloh8:
	adrp	x10, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	cmp	x11, x10
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #24
	subs	x9, x9, #1
	b.ne	LBB0_11
	b	LBB0_4
LBB0_13:
	mov	x23, x8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_WLAN_EID_VHT_CAP,4,2           ; @WLAN_EID_VHT_CAP
	.comm	_VHT_CAP_BEAMFORMEE_STS_OFFSET,4,2 ; @VHT_CAP_BEAMFORMEE_STS_OFFSET
.subsections_via_symbols
