	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_bss_get_bit_rates          ## -- Begin function wpa_bss_get_bit_rates
	.p2align	4, 0x90
_wpa_bss_get_bit_rates:                 ## @wpa_bss_get_bit_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_WLAN_EID_SUPP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_bss_get_ie
	movq	%rax, %rbx
	movq	_WLAN_EID_EXT_SUPP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpa_bss_get_ie
	movq	%rax, %r12
	xorl	%r15d, %r15d
	movl	$0, %eax
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
LBB0_2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	4(%r12), %r15d
LBB0_4:
	addl	%eax, %r15d
	movl	%r15d, %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	cmpl	$0, 4(%rbx)
	jle	LBB0_9
## %bb.10:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx,%rcx,4), %edx
	andl	$127, %edx
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	4(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_11
	jmp	LBB0_12
LBB0_5:
	movl	$-1, %r15d
	jmp	LBB0_17
LBB0_7:
	xorl	%ecx, %ecx
LBB0_12:
	testq	%r12, %r12
	je	LBB0_16
LBB0_13:
	cmpl	$0, 4(%r12)
	jle	LBB0_16
## %bb.14:
	leaq	(%rax,%rcx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12,%rdx,4), %esi
	andl	$127, %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	4(%r12), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_9:
	xorl	%ecx, %ecx
	testq	%r12, %r12
	jne	LBB0_13
LBB0_16:
	movq	%rax, (%r14)
LBB0_17:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_SUPP_RATES,4,2        ## @WLAN_EID_SUPP_RATES
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ## @WLAN_EID_EXT_SUPP_RATES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_bss_get_bit_rates          ; -- Begin function wpa_bss_get_bit_rates
	.p2align	2
_wpa_bss_get_bit_rates:                 ; @wpa_bss_get_bit_rates
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WLAN_EID_SUPP_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_SUPP_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wpa_bss_get_ie
	mov	x22, x0
Lloh3:
	adrp	x8, _WLAN_EID_EXT_SUPP_RATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_EXT_SUPP_RATES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpa_bss_get_ie
	mov	x20, x0
	cbz	x22, LBB0_3
; %bb.1:
	ldr	w8, [x22, #4]
	cbz	x20, LBB0_4
LBB0_2:
	ldr	w9, [x20, #4]
	b	LBB0_5
LBB0_3:
	mov	w8, #0
	cbnz	x20, LBB0_2
LBB0_4:
	mov	w9, #0
LBB0_5:
	add	w21, w9, w8
	mov	x0, x21
	bl	_os_malloc
	cbz	x0, LBB0_10
; %bb.6:
	cbz	x22, LBB0_11
; %bb.7:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.8:
	mov	x8, #0
	add	x9, x22, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	and	w11, w11, #0x7f
	str	w11, [x0, x10]
	add	x8, x8, #1
	ldrsw	x10, [x22, #4]
	cmp	x8, x10
	b.lt	LBB0_9
	b	LBB0_12
LBB0_10:
	mov	w21, #-1
	b	LBB0_18
LBB0_11:
	mov	x8, #0
LBB0_12:
	cbz	x20, LBB0_17
LBB0_13:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.14:
	mov	x9, #0
	add	x10, x20, #8
	add	x8, x0, x8, lsl #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x10, x11]
	and	w12, w12, #0x7f
	str	w12, [x8, x11]
	add	x9, x9, #1
	ldrsw	x11, [x20, #4]
	cmp	x9, x11
	b.lt	LBB0_15
	b	LBB0_17
LBB0_16:
	mov	x8, #0
	cbnz	x20, LBB0_13
LBB0_17:
	str	x0, [x19]
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_SUPP_RATES,4,2        ; @WLAN_EID_SUPP_RATES
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ; @WLAN_EID_EXT_SUPP_RATES
.subsections_via_symbols
