	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_supp_rates
_copy_supp_rates:                       ## @copy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_HOSTAPD_MODE_IEEE80211AD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_2:
	movl	12(%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.4:
	movl	(%rdx), %eax
	movl	4(%rdx), %r9d
	leal	(%r9,%rax), %esi
	cmpl	$5, %esi
	jb	LBB0_6
## %bb.5:
	movl	8(%rbx), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r9d, (%rsp)
	leaq	L_.str.1(%rip), %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_hostapd_logger
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movl	8(%rbx), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	xorl	%eax, %eax
	callq	_hostapd_logger
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movl	(%rbx), %edi
	movl	8(%rdx), %r8d
	movl	$4, %esi
	movl	%ecx, %edx
	movl	%eax, %ecx
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_merge_byte_arrays
	movl	%eax, 4(%rbx)
LBB0_7:
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODE_IEEE80211AD,8,3   ## @HOSTAPD_MODE_IEEE80211AD
	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ## @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ## @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No supported rates element in AssocReq"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid supported rates element length %d+%d"

	.no_dead_strip	_copy_supp_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_supp_rates
_copy_supp_rates:                       ; @copy_supp_rates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HOSTAPD_MODE_IEEE80211AD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOSTAPD_MODE_IEEE80211AD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_2:
	ldr	w8, [x2, #12]
	cbz	w8, LBB0_5
; %bb.3:
	ldp	w3, w5, [x2]
	add	w9, w5, w3
	cmp	w9, #5
	b.lo	LBB0_7
; %bb.4:
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	stp	x3, x5, [sp]
	mov	x3, x8
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19, #8]
Lloh11:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x4, l_.str@PAGE
Lloh18:
	add	x4, x4, l_.str@PAGEOFF
LBB0_6:
	bl	_hostapd_logger
Lloh19:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
	ldr	w4, [x2, #8]
	mov	w1, #4
	mov	x2, x8
                                        ; kill: def $w3 killed $w3 killed $x3
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_merge_byte_arrays
	str	w0, [x19, #4]
LBB0_8:
Lloh21:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODE_IEEE80211AD,8,3   ; @HOSTAPD_MODE_IEEE80211AD
	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ; @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ; @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No supported rates element in AssocReq"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid supported rates element length %d+%d"

	.no_dead_strip	_copy_supp_rates
.subsections_via_symbols
