	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath10k_wmi_start_scan_tlvs_len
LCPI0_0:
	.space	4
	.long	4                               ## 0x4
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ath10k_wmi_start_scan_tlvs_len:        ## @ath10k_wmi_start_scan_tlvs_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	$4, %esi
	callq	_roundup
	addl	$4, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	leal	4(%rax), %ecx
	movq	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pslld	$2, %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <u,4,u,u>
	pinsrd	$0, %ecx, %xmm2
	paddd	%xmm1, %xmm2
	movd	%eax, %xmm1
	blendvps	%xmm0, %xmm1, %xmm2
	pshufd	$85, %xmm2, %xmm0               ## xmm0 = xmm2[1,1,1,1]
	paddd	%xmm2, %xmm0
	movd	%xmm0, %eax
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	leal	4(,%rcx,4), %edx
	cmovel	%ecx, %edx
	addl	%eax, %edx
	movslq	%edx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath10k_wmi_start_scan_tlvs_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_start_scan_tlvs_len
_ath10k_wmi_start_scan_tlvs_len:        ; @ath10k_wmi_start_scan_tlvs_len
	.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	x0, [x0, #16]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #4
	bl	_roundup
	add	w8, w0, #4
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	add	w9, w8, #4
	ldr	d0, [x19]
	cmeq.2s	v1, v0, #0
	shl.2s	v0, v0, #2
	movi.2s	v2, #4
	mov.s	v2[0], w9
	add.2s	v0, v0, v2
	fmov	s2, w8
	bif.8b	v2, v0, v1
	bic.8b	v0, v0, v1
	dup.2s	v0, v0[1]
	add.2s	v0, v2, v0
	fmov	w8, s0
	ldr	w9, [x19, #8]
	lsl	w10, w9, #2
	add	w10, w10, #4
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	add	w8, w8, w9
	sxtw	x0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath10k_wmi_start_scan_tlvs_len
.subsections_via_symbols
