	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_is_usable_chans
_hostapd_is_usable_chans:               ## @hostapd_is_usable_chans
	.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
	movl	8(%rdi), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_hw_get_channel_chan
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hostapd_is_usable_chan
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	(%rbx), %rcx
	movl	4(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$0, 8(%rcx)
	movl	(%rcx), %esi
	je	LBB0_12
## %bb.4:
	addl	$4, %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_hostapd_is_usable_chan
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_HOSTAPD_CHAN_WIDTH_40P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	$1, 4(%rax)
	jmp	LBB0_10
LBB0_12:
	leal	(%rsi,%rax,4), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hostapd_is_usable_chan         ## TAILCALL
LBB0_7:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	addl	$-4, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hostapd_is_usable_chan
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	_HOSTAPD_CHAN_WIDTH_40M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.9:
	movq	(%rbx), %rax
	movl	$-1, 4(%rax)
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_WIDTH_40P,4,2     ## @HOSTAPD_CHAN_WIDTH_40P
	.comm	_HOSTAPD_CHAN_WIDTH_40M,4,2     ## @HOSTAPD_CHAN_WIDTH_40M
	.no_dead_strip	_hostapd_is_usable_chans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_is_usable_chans
_hostapd_is_usable_chans:               ; @hostapd_is_usable_chans
	.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
	ldr	w0, [x0, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x2, #0
	bl	_hw_get_channel_chan
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostapd_is_usable_chan
	cbz	w0, LBB0_11
; %bb.2:
	ldr	x9, [x19]
	ldr	w8, [x9, #4]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	w10, [x9, #8]
	ldr	w9, [x9]
	cbz	w10, LBB0_12
; %bb.4:
	add	w1, w9, #4
	mov	x0, x19
	mov	w2, #0
	bl	_hostapd_is_usable_chan
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _HOSTAPD_CHAN_WIDTH_40P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOSTAPD_CHAN_WIDTH_40P@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	mov	w0, #1
	str	w0, [x8, #4]
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19]
	ldr	w8, [x8]
	sub	w1, w8, #4
	mov	x0, x19
	mov	w2, #0
	bl	_hostapd_is_usable_chan
	cbz	w0, LBB0_11
; %bb.8:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _HOSTAPD_CHAN_WIDTH_40M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HOSTAPD_CHAN_WIDTH_40M@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x19]
	mov	w9, #-1
	str	w9, [x8, #4]
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	add	w1, w9, w8, lsl #2
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hostapd_is_usable_chan
LBB0_13:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_WIDTH_40P,4,2     ; @HOSTAPD_CHAN_WIDTH_40P
	.comm	_HOSTAPD_CHAN_WIDTH_40M,4,2     ; @HOSTAPD_CHAN_WIDTH_40M
	.no_dead_strip	_hostapd_is_usable_chans
.subsections_via_symbols
