	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acs_init                       ## -- Begin function acs_init
	.p2align	4, 0x90
_acs_init:                              ## @acs_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_WPA_DRIVER_FLAGS_ACS_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_hostapd_drv_do_acs
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_HOSTAPD_CHAN_INVALID@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_3:
	movq	_HOSTAPD_CHAN_INVALID@GOTPCREL(%rip), %r15
	cmpl	$0, 16(%rbx)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_acs_cleanup
	movq	%rbx, %rdi
	callq	_acs_request_scan
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movq	_HAPD_IFACE_ACS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hostapd_set_state
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_ACS_EVENT_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wpa_msg
LBB0_6:
	movq	_HOSTAPD_CHAN_ACS@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACS: Automatic channel selection started, this may take a bit"

	.comm	_WPA_DRIVER_FLAGS_ACS_OFFLOAD,4,2 ## @WPA_DRIVER_FLAGS_ACS_OFFLOAD
L_.str.1:                               ## @.str.1
	.asciz	"ACS: Offloading to driver"

	.comm	_HOSTAPD_CHAN_INVALID,4,2       ## @HOSTAPD_CHAN_INVALID
	.comm	_HOSTAPD_CHAN_ACS,4,2           ## @HOSTAPD_CHAN_ACS
	.comm	_HAPD_IFACE_ACS,4,2             ## @HAPD_IFACE_ACS
	.comm	_ACS_EVENT_STARTED,4,2          ## @ACS_EVENT_STARTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acs_init                       ; -- Begin function acs_init
	.p2align	2
_acs_init:                              ; @acs_init
	.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
Lloh0:
	adrp	x20, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _WPA_DRIVER_FLAGS_ACS_OFFLOAD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_ACS_OFFLOAD@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_hostapd_drv_do_acs
Lloh9:
	adrp	x8, _HOSTAPD_CHAN_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HOSTAPD_CHAN_INVALID@GOTPAGEOFF]
Lloh11:
	adrp	x9, _HOSTAPD_CHAN_ACS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HOSTAPD_CHAN_ACS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_acs_cleanup
	mov	x0, x19
	bl	_acs_request_scan
	tbnz	x0, #63, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _HAPD_IFACE_ACS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HAPD_IFACE_ACS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hostapd_set_state
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _ACS_EVENT_STARTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACS_EVENT_STARTED@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_wpa_msg
Lloh19:
	adrp	x8, _HOSTAPD_CHAN_ACS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HOSTAPD_CHAN_ACS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _HOSTAPD_CHAN_INVALID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HOSTAPD_CHAN_INVALID@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACS: Automatic channel selection started, this may take a bit"

	.comm	_WPA_DRIVER_FLAGS_ACS_OFFLOAD,4,2 ; @WPA_DRIVER_FLAGS_ACS_OFFLOAD
l_.str.1:                               ; @.str.1
	.asciz	"ACS: Offloading to driver"

	.comm	_HOSTAPD_CHAN_INVALID,4,2       ; @HOSTAPD_CHAN_INVALID
	.comm	_HOSTAPD_CHAN_ACS,4,2           ; @HOSTAPD_CHAN_ACS
	.comm	_HAPD_IFACE_ACS,4,2             ; @HAPD_IFACE_ACS
	.comm	_ACS_EVENT_STARTED,4,2          ; @ACS_EVENT_STARTED
.subsections_via_symbols
