	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_hw_get_channel         ## -- Begin function hostapd_hw_get_channel
	.p2align	4, 0x90
_hostapd_hw_get_channel:                ## @hostapd_hw_get_channel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%r14d, %esi
	callq	_hw_get_chan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	(%r15), %rax
LBB0_3:
	movq	8(%rax), %rdi
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.4:
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.5:
	movl	%r14d, %esi
	callq	_hw_get_chan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movl	$4, %edi
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	4(%rdi), %r13
	addq	8(%rax), %rdi
	movl	%r14d, %esi
	callq	_hw_get_chan
	movq	%r13, %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movl	%eax, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_hw_get_channel         ; -- Begin function hostapd_hw_get_channel
	.p2align	2
_hostapd_hw_get_channel:                ; @hostapd_hw_get_channel
	.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
	ldr	x8, [x0]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x19
	bl	_hw_get_chan
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x20]
LBB0_3:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x1, x19
	bl	_hw_get_chan
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x21, #0
	mov	w8, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	ldr	x9, [x20]
	ldrsw	x10, [x9]
	cmp	x21, x10
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x8, #4
	ldr	x9, [x9, #8]
	add	x0, x9, x8
	mov	x1, x19
	bl	_hw_get_chan
	mov	x8, x22
	cbz	w0, LBB0_7
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
