	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acs_request_scan
_acs_request_scan:                      ## @acs_request_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movq	32(%r15), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	$4, %esi
	callq	_os_calloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	32(%r15), %rax
	movslq	(%rax), %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %r12
	movl	(%r14), %eax
	testl	%eax, (%r12,%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%rbx), %rsi
	movq	%r15, %rdi
	callq	_is_in_chanlist
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r12,%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$4, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_acs_scan_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movq	16(%r15), %rdx
	incq	%rdx
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_hostapd_driver_scan
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_acs_cleanup
	movl	$-1, %r14d
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_os_free
	jmp	LBB0_11
LBB0_1:
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_acs_scan_complete,4,2          ## @acs_scan_complete
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACS: Scanning %d / %d"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"ACS: Failed to request initial scan"

	.no_dead_strip	_acs_request_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acs_request_scan
_acs_request_scan:                      ; @acs_request_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	add	w0, w8, #1
	mov	w1, #4
	bl	_os_calloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19, #32]
	ldrsw	x9, [x8]
	add	x21, x21, #8
	cmp	x22, x9
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x8, #8]
	add	x1, x24, x21
	ldr	w8, [x1]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_is_in_chanlist
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x24, x21
	ldr	w8, [x8, #4]
	str	w8, [x20], #4
	b	LBB0_3
LBB0_7:
	str	wzr, [x20]
Lloh2:
	adrp	x8, _acs_scan_complete@GOTPAGE
Lloh3:
	ldr	x8, [x8, _acs_scan_complete@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
	str	w8, [x19, #24]
Lloh7:
	ldr	w0, [x9]
	ldp	x9, x8, [x19, #8]
	add	x8, x8, #1
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_hostapd_driver_scan
	tbnz	x0, #63, LBB0_10
; %bb.8:
	mov	w19, #0
	b	LBB0_11
LBB0_9:
	mov	w19, #-1
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_acs_cleanup
	mov	w19, #-1
LBB0_11:
	ldr	x0, [sp, #24]
	bl	_os_free
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_acs_scan_complete,4,2          ; @acs_scan_complete
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACS: Scanning %d / %d"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"ACS: Failed to request initial scan"

	.no_dead_strip	_acs_request_scan
.subsections_via_symbols
