	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_internal_escan_add_info
_brcmf_internal_escan_add_info:         ## @brcmf_internal_escan_add_info
	.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	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_CH_MAX_2G_CHANNEL@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jge	LBB0_1
## %bb.2:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_ieee80211_channel_to_frequency
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	24(%r13), %edi
	movl	%eax, %esi
	callq	_ieee80211_get_channel
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movslq	(%r13), %rcx
	movl	%ecx, %edx
	testq	%rcx, %rcx
	jle	LBB0_7
## %bb.9:
	movq	16(%r13), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rdi,%rsi,8)
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_7:
	xorl	%esi, %esi
LBB0_8:
	cmpl	%edx, %esi
	jne	LBB0_13
LBB0_12:
	movq	16(%r13), %rdx
	leal	1(%rcx), %esi
	movl	%esi, (%r13)
	movq	%rax, (%rdx,%rcx,8)
LBB0_13:
	movl	4(%r13), %ecx
	xorl	%r12d, %r12d
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.15:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	cmpq	%r14, -8(%rax,%r15)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rax,%r15), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcmp
	movl	4(%r13), %ecx
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_14:
	xorl	%ebx, %ebx
LBB0_19:
	cmpl	%ecx, %ebx
	jne	LBB0_21
## %bb.20:
	movq	8(%r13), %rax
	movslq	%ecx, %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	movq	8(%r13), %rax
	movslq	4(%r13), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 4(%r13)
	shlq	$4, %rcx
	movq	%r14, (%rax,%rcx)
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CH_MAX_2G_CHANNEL,8,3          ## @CH_MAX_2G_CHANNEL
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_brcmf_internal_escan_add_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_internal_escan_add_info
_brcmf_internal_escan_add_info:         ; @brcmf_internal_escan_add_info
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CH_MAX_2G_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CH_MAX_2G_CHANNEL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	cmp	x8, x3
	csel	x8, x9, x10, lt
	ldr	w1, [x8]
	mov	x0, x3
	bl	_ieee80211_channel_to_frequency
	cbz	w0, LBB0_6
; %bb.1:
	mov	x1, x0
	ldr	w0, [x20, #24]
	bl	_ieee80211_get_channel
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x9, #0
	ldr	x10, [x20, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cmp	x11, x0
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_7:
	mov	w9, #0
LBB0_8:
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_9:
	sxtw	x8, w8
	ldr	x9, [x20, #16]
	add	w10, w8, #1
	str	w10, [x20]
	str	x0, [x9, x8, lsl #3]
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	add	x23, x23, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x9, x23]
	cmp	x10, x19
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x9, x23
	ldr	w0, [x8, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_memcmp
	ldr	w8, [x20, #4]
	cbnz	w0, LBB0_12
LBB0_15:
	cmp	w22, w8
	b.ne	LBB0_18
LBB0_16:
	ldr	x9, [x20, #8]
	add	x8, x9, w8, sxtw #4
	ldr	w0, [x8, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #4]
	add	w10, w9, #1
	str	w10, [x20, #4]
	lsl	x9, x9, #4
	str	x19, [x8, x9]
	b	LBB0_19
LBB0_17:
	mov	w22, #0
	cmp	w22, w8
	b.eq	LBB0_16
LBB0_18:
	mov	w0, #0
LBB0_19:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CH_MAX_2G_CHANNEL,8,3          ; @CH_MAX_2G_CHANNEL
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_brcmf_internal_escan_add_info
.subsections_via_symbols
