	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_drv_do_acs             ## -- Begin function hostapd_drv_do_acs
	.p2align	4, 0x90
_hostapd_drv_do_acs:                    ## @hostapd_drv_do_acs
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	8(%rdi), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_29
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.2:
	movq	%rdi, %r12
	leaq	-120(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_os_memset
	movq	16(%r12), %rax
	movq	8(%rax), %rcx
	movl	44(%rcx), %edx
	movl	%edx, -80(%rbp)
	movl	40(%rcx), %ecx
	xorl	%r15d, %r15d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	sete	%cl
	movq	24(%rax), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.5:
	movl	(%r14), %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	cmpl	$0, (%r14)
	jle	LBB0_20
## %bb.8:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	addq	$40, %rdi
	movq	(%r15,%rbx), %rsi
	callq	_freq_range_list_includes
	testl	%eax, %eax
	je	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	cmpq	$0, 32(%rax)
	movl	8(%r15,%rbx), %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
	jmp	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15,%rbx), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %ecx
	incl	%edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movl	12(%r15,%rbx), %esi
	leaq	-56(%rbp), %rdi
	callq	_int_array_add_unique
	jmp	LBB0_15
LBB0_3:
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.17:
	movb	%cl, %r15b
	leaq	-56(%rbp), %r14
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_hostapd_get_hw_mode_any_channels
	incq	%rbx
	movq	16(%r12), %rax
	movslq	(%rax), %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jl	LBB0_18
## %bb.19:
	xorl	%r15d, %r15d
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_6:
	movl	$-1, %ebx
	jmp	LBB0_29
LBB0_16:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_4:
	xorl	%r15d, %r15d
LBB0_21:
	movq	%r15, -120(%rbp)
	movl	%ebx, -112(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	movq	24(%rdi), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	movl	%eax, -96(%rbp)
	movq	_HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	(%rdi), %eax
	setne	%dl
	movl	$40, %esi
	movl	$20, %ebx
	cmovel	%ebx, %esi
	testq	%rcx, %rcx
	movl	%edx, -92(%rbp)
	cmovel	%ebx, %esi
	movq	8(%rdi), %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	setne	%dl
	movl	%edx, -88(%rbp)
	movl	%esi, -84(%rbp)
	cmpq	$0, 16(%rdi)
	jne	LBB0_23
## %bb.22:
	testq	%rcx, %rcx
	je	LBB0_28
LBB0_23:
	testl	%eax, %eax
	je	LBB0_28
## %bb.24:
	callq	_hostapd_get_oper_chwidth
	movq	_CHANWIDTH_80MHZ@GOTPCREL(%rip), %rdx
	movl	$80, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_27
## %bb.25:
	movq	_CHANWIDTH_160MHZ@GOTPCREL(%rip), %rdx
	movl	$160, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_27
## %bb.26:
	movq	_CHANWIDTH_80P80MHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_28
LBB0_27:
	movl	%ecx, -84(%rbp)
LBB0_28:
	movq	8(%r12), %rax
	movl	(%r12), %edi
	leaq	-120(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_os_free
LBB0_29:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET,4,2 ## @HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET
	.comm	_CHANWIDTH_80MHZ,8,3            ## @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_160MHZ,8,3           ## @CHANWIDTH_160MHZ
	.comm	_CHANWIDTH_80P80MHZ,8,3         ## @CHANWIDTH_80P80MHZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_drv_do_acs             ; -- Begin function hostapd_drv_do_acs
	.p2align	2
_hostapd_drv_do_acs:                    ; @hostapd_drv_do_acs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.2:
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_os_memset
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w10, [x9, #44]
	str	w10, [sp, #56]
	ldr	w21, [x9, #40]
	cmp	w21, #0
	cset	w20, eq
	ldr	x22, [x8, #24]
	cbz	x22, LBB0_14
; %bb.3:
	ldr	w0, [x22]
	bl	_os_malloc
	cbz	x0, LBB0_25
; %bb.4:
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.5:
	mov	x24, #0
	mov	x25, #0
	mov	w23, #0
Lloh0:
	adrp	x26, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
Lloh2:
	adrp	x27, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #16
	cmp	x25, x8
	b.ge	LBB0_19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x22, #8]
	cbz	w21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	add	x0, x8, #40
	ldr	x1, [x28, x24]
	bl	_freq_range_list_includes
	cbz	w0, LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #32]
	add	x8, x28, x24
	ldr	w8, [x8, #8]
	cbz	x9, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_7
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x28, x24
	ldr	x9, [x8]
	add	w28, w23, #1
	str	x9, [x20, w23, uxtw #3]
	ldr	w1, [x8, #12]
	add	x0, sp, #8
	bl	_int_array_add_unique
	mov	x23, x28
	b	LBB0_7
LBB0_13:
	mov	w19, #0
	b	LBB0_29
LBB0_14:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x21, #0
	mov	x22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	add	x1, x8, x21
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_hostapd_get_hw_mode_any_channels
	add	x22, x22, #1
	ldr	x8, [x19, #16]
	ldrsw	x9, [x8]
	add	x21, x21, #16
	cmp	x22, x9
	b.lt	LBB0_16
LBB0_17:
	mov	x20, #0
LBB0_18:
	mov	w23, #0
LBB0_19:
	str	x20, [sp, #16]
	str	w23, [sp, #24]
	ldr	x8, [sp, #8]
	str	x8, [sp, #32]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cset	w10, ne
	str	w10, [sp, #40]
	ldr	w8, [x0]
Lloh4:
	adrp	x9, _HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ands	w8, w9, w8
	cset	w11, ne
	str	w11, [sp, #44]
	ldr	x9, [x0, #8]
	cmp	x9, #0
	cset	w12, ne
	tst	w10, w11
	mov	w10, #20
	mov	w11, #40
	csel	w10, w11, w10, ne
	stp	w12, w10, [sp, #48]
	ldr	x10, [x0, #16]
	cbz	x10, LBB0_21
; %bb.20:
	cbnz	w8, LBB0_22
	b	LBB0_28
LBB0_21:
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_28
LBB0_22:
	bl	_hostapd_get_oper_chwidth
Lloh7:
	adrp	x8, _CHANWIDTH_80MHZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CHANWIDTH_80MHZ@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.23:
	mov	w8, #80
LBB0_24:
	str	w8, [sp, #52]
	b	LBB0_28
LBB0_25:
	mov	w19, #-1
	b	LBB0_29
LBB0_26:
Lloh10:
	adrp	x8, _CHANWIDTH_160MHZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHANWIDTH_160MHZ@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x8]
	mov	w8, #160
	cmp	x0, x9
	b.eq	LBB0_24
; %bb.27:
Lloh13:
	adrp	x9, _CHANWIDTH_80P80MHZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CHANWIDTH_80P80MHZ@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_24
LBB0_28:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	add	x1, sp, #16
	blr	x8
	mov	x19, x0
	mov	x0, x20
	bl	_os_free
LBB0_29:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET,4,2 ; @HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET
	.comm	_CHANWIDTH_80MHZ,8,3            ; @CHANWIDTH_80MHZ
	.comm	_CHANWIDTH_160MHZ,8,3           ; @CHANWIDTH_160MHZ
	.comm	_CHANWIDTH_80P80MHZ,8,3         ; @CHANWIDTH_80P80MHZ
.subsections_via_symbols
