	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_cmd_start_ap_can_fit
_qtnf_cmd_start_ap_can_fit:             ## @qtnf_cmd_start_ap_can_fit
	.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
	movq	%rsi, %r12
	movdqu	40(%rsi), %xmm0
	movdqu	56(%rsi), %xmm1
	paddq	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movd	%xmm0, %ebx
	addl	32(%rsi), %ebx
	addl	24(%rsi), %ebx
	movq	%rdi, %r14
	addl	16(%rsi), %ebx
	leaq	8(%rsi), %rdi
	callq	_cfg80211_chandef_valid
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rbx,%rcx,4), %r15d
	addl	$4, %r15d
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_mac_addrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %edx
	callq	_struct_size
	addl	%eax, %r15d
	addl	$4, %r15d
LBB0_2:
	movl	%r15d, %ecx
	movq	_QTNF_MAX_CMD_BUF_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	addq	$4, %rdx
	movl	$1, %eax
	cmpq	%rcx, %rdx
	jae	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	callq	_pr_err
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mac_addrs,4,2                  ## @mac_addrs
	.comm	_QTNF_MAX_CMD_BUF_SIZE,4,2      ## @QTNF_MAX_CMD_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIF%u.%u: can not fit AP settings: %u\n"

	.no_dead_strip	_qtnf_cmd_start_ap_can_fit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_cmd_start_ap_can_fit
_qtnf_cmd_start_ap_can_fit:             ; @qtnf_cmd_start_ap_can_fit
	.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	x21, x1
	mov	x19, x0
	ldr	w8, [x1, #64]
	ldr	w9, [x1, #56]
	ldr	w10, [x1, #48]
	add	w8, w8, w9
	add	w8, w8, w10
	ldr	w9, [x1, #40]
	ldr	w10, [x1, #32]
	add	w8, w8, w9
	add	w8, w8, w10
	ldr	w9, [x1, #24]
	ldr	w10, [x1, #16]
	add	w8, w8, w9
	add	w20, w8, w10
	add	w22, w20, #4
	add	x0, x1, #8
	bl	_cfg80211_chandef_valid
	add	w8, w20, #8
	cmp	x0, #0
	csel	w20, w22, w8, eq
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _mac_addrs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mac_addrs@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0]
	bl	_struct_size
	add	w8, w20, w0
	add	w20, w8, #4
LBB0_2:
Lloh3:
	adrp	x8, _QTNF_MAX_CMD_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QTNF_MAX_CMD_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x8, x8, #4
	cmp	x8, w20, uxtw
	b.hs	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_pr_err
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mac_addrs,4,2                  ; @mac_addrs
	.comm	_QTNF_MAX_CMD_BUF_SIZE,4,2      ; @QTNF_MAX_CMD_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIF%u.%u: can not fit AP settings: %u\n"

	.no_dead_strip	_qtnf_cmd_start_ap_can_fit
.subsections_via_symbols
