	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_prep_hw_scan
_ieee80211_prep_hw_scan:                ## @ieee80211_prep_hw_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdx
	movq	24(%rdi), %rbx
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %r8
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r9), %rdx
	movq	%rdx, (%r14)
	testl	%ecx, %ecx
	jne	LBB0_17
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	(%r8), %rdx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, %r9
	movl	(%rbx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %r10d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	xorl	%ecx, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r10b
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%rsi,8), %rax
	cmpl	%r9d, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rdx
	movq	24(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	%rax, (%rdx,%rcx,8)
	incl	%ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r10d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rax
	movq	(%rax,%rsi,8), %rax
	cmpl	%r9d, (%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r14), %rdx
	movq	24(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	%rax, (%rdx,%rcx,8)
	incl	%ecx
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	24(%rbx), %rax
	movq	8(%rax,%rsi,8), %rax
	cmpl	%r9d, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r14), %rdx
	movq	24(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	%rax, (%rdx,%rcx,8)
	incl	%ecx
	jmp	LBB0_12
LBB0_17:
	movq	8(%r14), %rax
	movl	%ecx, (%rax)
	movq	16(%rax), %rsi
	movl	16(%r14), %edx
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	movq	8(%rbx), %rax
	movl	%r9d, %edi
	movl	(%rax,%rdi,4), %eax
	movq	%r14, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	$0
	pushq	%rax
	callq	_ieee80211_build_preq_ies
	addq	$16, %rsp
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	4(%rbx), %eax
	movl	%eax, 8(%rcx)
	movl	$1, %eax
	jmp	LBB0_18
LBB0_2:
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_BANDS,8,3        ## @IEEE80211_NUM_BANDS
	.no_dead_strip	_ieee80211_prep_hw_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_prep_hw_scan
_ieee80211_prep_hw_scan:                ; @ieee80211_prep_hw_scan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x10, [x0]
Lloh0:
	adrp	x8, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x5, #1
	str	x10, [x19]
	cbnz	w9, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x8]
	cmp	x10, x9
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x5, x10
	ldr	w11, [x20]
	cmp	w11, #1
	b.lt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	mov	w9, #0
	lsl	x11, x11, #3
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x10, #8
	cmp	x11, x10
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x20, #24]
	ldr	x12, [x12, x10]
	ldr	w13, [x12]
	cmp	w13, w5
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x13, [x19, #8]
	ldr	x13, [x13, #24]
	str	x12, [x13, w9, sxtw #3]
	add	w9, w9, #1
	b	LBB0_6
LBB0_9:
	ldr	x8, [x19, #8]
	str	w9, [x8]
	ldr	x1, [x8, #16]
	ldr	w2, [x19, #16]
	ldp	w4, w3, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w6, [x8, w5, uxtw #2]
	mov	x0, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	mov	w7, #0
	bl	_ieee80211_build_preq_ies
	ldr	x8, [x19, #8]
	ldr	w9, [x20, #4]
	stp	w0, w9, [x8, #4]
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_BANDS,8,3        ; @IEEE80211_NUM_BANDS
	.no_dead_strip	_ieee80211_prep_hw_scan
.subsections_via_symbols
