	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_htc_prepare_tx_skb
_ath10k_htc_prepare_tx_skb:             ## @ath10k_htc_prepare_tx_skb
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rsi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	(%r15), %rdi
	addq	$-24, %rdi
	callq	___cpu_to_le16
	movl	%eax, 12(%r14)
	movl	$0, 8(%r14)
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_2:
	movq	(%rbx), %rdi
	callq	_spin_lock_bh
	movslq	8(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, (%r14)
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE,4,2 ## @ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE
	.no_dead_strip	_ath10k_htc_prepare_tx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_htc_prepare_tx_skb
_ath10k_htc_prepare_tx_skb:             ; @ath10k_htc_prepare_tx_skb
	.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	x20, [x1, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x19, #24]
	str	w8, [x20, #16]
	ldr	x8, [x21]
	sub	x0, x8, #24
	bl	___cpu_to_le16
	stp	wzr, w0, [x20, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_2:
	ldr	x0, [x19]
	bl	_spin_lock_bh
	ldrsw	x8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x19, #8]
	str	x8, [x20]
	ldr	x0, [x19]
	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
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE,4,2 ; @ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE
	.no_dead_strip	_ath10k_htc_prepare_tx_skb
.subsections_via_symbols
