	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _new_connect_scan_req
__new_connect_scan_req:                 ## @_new_connect_scan_req
	.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	%rsi, %r14
	movq	%rdi, %r13
	callq	_ieee80211_get_num_supported_channels
	movl	%eax, %r12d
	leal	28(,%r12,8), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movslq	%r12d, %rax
	shlq	$3, %rax
	addq	16(%r15), %rax
	movq	%rax, 8(%r15)
	movl	%r12d, (%r15)
	movl	$1, 4(%r15)
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_12
## %bb.2:
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	(%r13), %r10
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%r8, %rdx
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpq	$0, (%r10,%rdx,8)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r10,%rdx,8), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	movq	(%r10,%rdx,8), %rcx
	movslq	(%rcx), %rdi
	addq	$4, %rax
	cmpq	%rdi, %rbx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rcx), %rcx
	testl	%r9d, (%rcx,%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	addq	%rax, %rcx
	movq	16(%r15), %rdi
	movslq	%esi, %rsi
	movq	%rcx, (%rdi,%rsi,8)
	incl	%esi
	movq	(%r13), %r10
	jmp	LBB0_8
LBB0_10:
	testl	%esi, %esi
	je	LBB0_12
## %bb.11:
	movl	%esi, (%r15)
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_memcpy
	movl	(%r14), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	callq	_kfree
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.no_dead_strip	__new_connect_scan_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _new_connect_scan_req
__new_connect_scan_req:                 ; @_new_connect_scan_req
	.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	x21, x0
	bl	_ieee80211_get_num_supported_channels
	mov	x22, x0
	lsl	w8, w0, #3
	add	w0, w8, #28
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [x20, #16]
	add	x8, x8, w22, sxtw #3
	str	x8, [x20, #8]
	mov	w8, #1
	stp	w22, w8, [x20]
Lloh3:
	adrp	x8, _NUM_NL80211_BANDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x10, #0
	mov	w9, #0
Lloh6:
	adrp	x11, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	ldr	x12, [x21]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x13, [x12, x10, lsl #3]
	cbz	x13, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [x12, x10, lsl #3]
	ldr	w13, [x15]
	cmp	w13, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, #0
	mov	x14, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x14, x14, #1
	ldr	x15, [x12, x10, lsl #3]
	ldrsw	x16, [x15]
	add	x13, x13, #4
	cmp	x14, x16
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x15, #8]
	add	x15, x15, x13
	ldr	w16, [x15]
	tst	w11, w16
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x12, [x20, #16]
	str	x15, [x12, w9, sxtw #3]
	add	w9, w9, #1
	ldr	x12, [x21]
	b	LBB0_7
LBB0_10:
	cbz	w9, LBB0_12
; %bb.11:
	str	w9, [x20]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldp	w2, w1, [x19]
	bl	_memcpy
	ldr	w8, [x19]
	ldr	x9, [x20, #8]
	str	w8, [x9]
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_kfree
	mov	x20, #0
LBB0_13:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.no_dead_strip	__new_connect_scan_req
.subsections_via_symbols
