	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_config_check           ## -- Begin function hostapd_config_check
	.p2align	4, 0x90
_hostapd_config_check:                  ## @hostapd_config_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_14
## %bb.1:
	cmpq	$0, 48(%r15)
	je	LBB0_5
## %bb.2:
	movq	64(%r15), %rax
	leaq	L_.str(%rip), %rsi
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_11
## %bb.4:
	cmpl	$-1, (%r15)
	jne	LBB0_14
	jmp	LBB0_9
LBB0_5:
	cmpq	$0, 56(%r15)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	cmpl	$-1, (%r15)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	cmpq	$0, 40(%r15)
	je	LBB0_14
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
LBB0_11:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_printf
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_14:
	movq	_NUM_TX_QUEUES@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hostapd_config_check_cw
	testq	%rax, %rax
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_16
LBB0_18:
	cmpq	$0, 16(%r15)
	je	LBB0_23
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_hostapd_config_check_bss
	testq	%rax, %rax
	jne	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	cmpq	16(%r15), %rbx
	jb	LBB0_20
LBB0_23:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot enable IEEE 802.11d without setting the country_code"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot enable IEEE 802.11h without IEEE 802.11d enabled"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot add Power Constraint element without Country element"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot set Spectrum Management bit without Country and Power Constraint elements"

	.comm	_NUM_TX_QUEUES,8,3              ## @NUM_TX_QUEUES
	.comm	_AIRTIME_MODE_STATIC,8,3        ## @AIRTIME_MODE_STATIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_config_check           ; -- Begin function hostapd_config_check
	.p2align	2
_hostapd_config_check:                  ; @hostapd_config_check
	.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	x20, x0
	cbz	w1, LBB0_14
; %bb.1:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20, #64]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.3:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_14
	b	LBB0_10
LBB0_5:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_8
; %bb.6:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_7:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.9:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_14
; %bb.11:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_wpa_printf
LBB0_13:
	mov	w0, #-1
	b	LBB0_23
LBB0_14:
Lloh11:
	adrp	x22, _NUM_TX_QUEUES@GOTPAGE
Lloh12:
	ldr	x22, [x22, _NUM_TX_QUEUES@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_18
; %bb.15:
	mov	x21, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_hostapd_config_check_cw
	cbnz	x0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.lo	LBB0_16
LBB0_18:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_22
; %bb.19:
	mov	x21, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x21, lsl #2]
	mov	x1, x20
	mov	x2, x19
	bl	_hostapd_config_check_bss
	cbnz	x0, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #16]
	cmp	x21, x8
	b.lo	LBB0_20
LBB0_22:
	mov	w0, #0
LBB0_23:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot enable IEEE 802.11d without setting the country_code"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot enable IEEE 802.11h without IEEE 802.11d enabled"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot add Power Constraint element without Country element"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot set Spectrum Management bit without Country and Power Constraint elements"

	.comm	_NUM_TX_QUEUES,8,3              ; @NUM_TX_QUEUES
	.comm	_AIRTIME_MODE_STATIC,8,3        ; @AIRTIME_MODE_STATIC
.subsections_via_symbols
