	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_op_pull_swba_ev
_ath10k_wmi_tlv_op_pull_swba_ev:        ## @ath10k_wmi_tlv_op_pull_swba_ev
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	%rdx, -40(%rbp)
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	movq	_ath10k_wmi_tlv_swba_parse@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r8
	callq	_ath10k_wmi_tlv_iter
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	jmp	LBB0_10
LBB0_2:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	(%rax), %edi
	movl	%edi, (%r14)
	callq	___le32_to_cpu
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_BIT
	andl	%r14d, %eax
	cmpl	$1, %eax
	sbbq	$-1, %r12
	sarl	%ebx
	cmpl	$1, %r14d
	movl	%ebx, %r14d
	ja	LBB0_6
## %bb.7:
	cmpq	-64(%rbp), %r12
	je	LBB0_8
	jmp	LBB0_9
LBB0_4:
	xorl	%r12d, %r12d
	cmpq	-64(%rbp), %r12
	jne	LBB0_9
LBB0_8:
	cmpq	-56(%rbp), %r12
	je	LBB0_10
LBB0_9:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_wmi_tlv_swba_parse,4,2  ## @ath10k_wmi_tlv_swba_parse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parse tlv: %d\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_ath10k_wmi_tlv_op_pull_swba_ev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_tlv_op_pull_swba_ev
_ath10k_wmi_tlv_op_pull_swba_ev:        ; @ath10k_wmi_tlv_op_pull_swba_ev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x0
	stp	xzr, xzr, [sp]
	stp	xzr, x2, [sp, #16]
	ldp	w2, w8, [x1]
Lloh0:
	adrp	x9, _ath10k_wmi_tlv_swba_parse@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ath10k_wmi_tlv_swba_parse@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x4, sp
	mov	x1, x8
	bl	_ath10k_wmi_tlv_iter
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_ath10k_warn
	b	LBB0_10
LBB0_2:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w0, [x8]
	str	w0, [x19]
	bl	___le32_to_cpu
	cbz	w0, LBB0_6
; %bb.4:
	mov	x19, x0
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_BIT
	tst	w0, w19
	cinc	x20, x20, ne
	asr	w8, w19, #1
	cmp	w19, #1
	mov	x19, x8
	b.hi	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldp	x8, x9, [sp]
	cmp	x20, x8
	ccmp	x20, x9, #0, eq
	b.eq	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EPROTO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_wmi_tlv_swba_parse,4,2  ; @ath10k_wmi_tlv_swba_parse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parse tlv: %d\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_ath10k_wmi_tlv_op_pull_swba_ev
.subsections_via_symbols
