	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_ext_supp_rates     ## -- Begin function hostapd_eid_ext_supp_rates
	.p2align	4, 0x90
_hostapd_eid_ext_supp_rates:            ## @hostapd_eid_ext_supp_rates
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	8(%rdi), %r14
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.1:
	movl	(%r14), %r15d
	movq	(%rdi), %r10
	movq	24(%r10), %r9
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	cmpq	$1, 16(%r10)
	sbbl	$-1, %r15d
LBB0_3:
	movq	8(%r10), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.4:
	cmpq	$1, (%r10)
	sbbl	$-1, %r15d
LBB0_5:
	cmpl	$9, %r15d
	jl	LBB0_25
## %bb.6:
	leal	-8(%r15), %edx
	movq	_WLAN_EID_EXT_SUPP_RATES@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, (%rax)
	movl	%edx, 4(%rax)
	addq	$8, %rax
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	movq	_HOSTAPD_RATE_BASIC@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdi), %rdx
	testl	$-8, %edi
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	(%rsi,%rdi,8), %rbx
	imulq	$1717986919, %rbx, %rbx         ## imm = 0x66666667
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$33, %rbx
	addl	%ecx, %ebx
	movl	%ebx, (%rax)
	movl	(%r11), %ecx
	testl	%ecx, 4(%rsi,%rdi,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	orl	$128, %ebx
	movl	%ebx, (%rax)
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rax
	movl	(%r14), %ebx
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ebx, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rdx, %rdi
	cmpl	%edx, %r15d
	jg	LBB0_9
LBB0_15:
	testq	%r9, %r9
	je	LBB0_16
LBB0_17:
	cmpq	$0, 16(%r10)
	je	LBB0_18
## %bb.19:
	leal	1(%rdx), %ecx
	cmpl	$8, %edx
	jb	LBB0_21
## %bb.20:
	movq	_BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPCREL(%rip), %rdx
	movl	$128, %esi
	orl	(%rdx), %esi
	movl	%esi, (%rax)
	addq	$4, %rax
	testq	%r8, %r8
	jne	LBB0_22
	jmp	LBB0_25
LBB0_7:
	xorl	%edx, %edx
	testq	%r9, %r9
	jne	LBB0_17
LBB0_16:
	movl	%edx, %ecx
LBB0_21:
	testq	%r8, %r8
	je	LBB0_25
LBB0_22:
	cmpq	$0, (%r10)
	je	LBB0_25
## %bb.23:
	cmpl	$8, %ecx
	jl	LBB0_25
## %bb.24:
	movq	_BSS_MEMBERSHIP_SELECTOR_VHT_PHY@GOTPCREL(%rip), %rcx
	movl	$128, %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	addq	$4, %rax
	jmp	LBB0_25
LBB0_18:
	movl	%edx, %ecx
	testq	%r8, %r8
	jne	LBB0_22
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ## @WLAN_EID_EXT_SUPP_RATES
	.comm	_HOSTAPD_RATE_BASIC,4,2         ## @HOSTAPD_RATE_BASIC
	.comm	_BSS_MEMBERSHIP_SELECTOR_HT_PHY,4,2 ## @BSS_MEMBERSHIP_SELECTOR_HT_PHY
	.comm	_BSS_MEMBERSHIP_SELECTOR_VHT_PHY,4,2 ## @BSS_MEMBERSHIP_SELECTOR_VHT_PHY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_ext_supp_rates     ; -- Begin function hostapd_eid_ext_supp_rates
	.p2align	2
_hostapd_eid_ext_supp_rates:            ; @hostapd_eid_ext_supp_rates
	.cfi_startproc
; %bb.0:
	ldr	x12, [x0, #8]
	ldr	x15, [x12, #8]
	cbz	x15, LBB0_26
; %bb.1:
	ldr	w13, [x12]
	ldr	x8, [x0]
	ldr	x11, [x8, #24]
	cbz	x11, LBB0_3
; %bb.2:
	ldr	x9, [x8, #16]
	cmp	x9, #0
	cinc	w13, w13, ne
LBB0_3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x10, [x8]
	cmp	x10, #0
	cinc	w13, w13, ne
LBB0_5:
	cmp	w13, #9
	b.lt	LBB0_26
; %bb.6:
	sub	w14, w13, #8
Lloh0:
	adrp	x10, _WLAN_EID_EXT_SUPP_RATES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WLAN_EID_EXT_SUPP_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w16, [x10]
	add	x10, x1, #8
	stp	w16, w14, [x1]
	ldr	w0, [x12]
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x14, #0
	add	x15, x15, #4
	mov	w16, #26215
	movk	w16, #26214, lsl #16
Lloh3:
	adrp	x17, _HOSTAPD_RATE_BASIC@GOTPAGE
Lloh4:
	ldr	x17, [x17, _HOSTAPD_RATE_BASIC@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	tst	x14, #0xfffffff8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldursw	x0, [x15, #-4]
	mul	x0, x0, x16
	lsr	x1, x0, #63
	asr	x0, x0, #33
	add	w0, w0, w1
	str	w0, [x10]
	ldr	w1, [x15]
	ldr	w2, [x17]
	tst	w2, w1
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	w0, w0, #0x80
	str	w0, [x10]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #4
	ldr	w0, [x12]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x14, x14, #1
	cmp	x14, w0, sxtw
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x15, x15, #8
	cmp	w13, w14
	b.gt	LBB0_8
LBB0_14:
	cbz	x11, LBB0_19
LBB0_15:
	ldr	x11, [x8, #16]
	cbz	x11, LBB0_24
; %bb.16:
	add	w11, w14, #1
	cmp	w14, #8
	b.lo	LBB0_20
; %bb.17:
Lloh5:
	adrp	x12, _BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPAGE
Lloh6:
	ldr	x12, [x12, _BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	orr	w12, w12, #0x80
	str	w12, [x10], #4
	cbnz	x9, LBB0_21
	b	LBB0_25
LBB0_18:
	mov	w14, #0
	cbnz	x11, LBB0_15
LBB0_19:
	mov	x11, x14
LBB0_20:
	cbz	x9, LBB0_25
LBB0_21:
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.22:
	cmp	w11, #8
	b.lt	LBB0_25
; %bb.23:
Lloh8:
	adrp	x8, _BSS_MEMBERSHIP_SELECTOR_VHT_PHY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BSS_MEMBERSHIP_SELECTOR_VHT_PHY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, #0x80
	str	w8, [x10], #4
	b	LBB0_25
LBB0_24:
	mov	x11, x14
	cbnz	x9, LBB0_21
LBB0_25:
	mov	x1, x10
LBB0_26:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ; @WLAN_EID_EXT_SUPP_RATES
	.comm	_HOSTAPD_RATE_BASIC,4,2         ; @HOSTAPD_RATE_BASIC
	.comm	_BSS_MEMBERSHIP_SELECTOR_HT_PHY,4,2 ; @BSS_MEMBERSHIP_SELECTOR_HT_PHY
	.comm	_BSS_MEMBERSHIP_SELECTOR_VHT_PHY,4,2 ; @BSS_MEMBERSHIP_SELECTOR_VHT_PHY
.subsections_via_symbols
