	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_clone_skb_for_tx_status ## -- Begin function mwifiex_clone_skb_for_tx_status
	.p2align	4, 0x90
_mwifiex_clone_skb_for_tx_status:       ## @mwifiex_clone_skb_for_tx_status
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	4(%rbx), %rdi
	movl	(%r15), %r8d
	movq	%r13, %rsi
	movl	$1, %edx
	movl	$16, %ecx
	callq	_idr_alloc
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.2:
	callq	_MWIFIEX_SKB_TXCB
	movl	%r15d, (%rax)
	orl	%r12d, 8(%rax)
	movq	%r13, %rdi
	callq	_MWIFIEX_SKB_TXCB
	movl	%r15d, (%rax)
	orl	%r12d, 8(%rax)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:
	movq	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_9
## %bb.4:
	movl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_9
LBB0_5:
	callq	_skb_shared
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_kfree_skb
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_8:
	movq	%r13, %r14
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS,4,2 ## @MWIFIEX_BUF_FLAG_ACTION_TX_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_clone_skb_for_tx_status ; -- Begin function mwifiex_clone_skb_for_tx_status
	.p2align	2
_mwifiex_clone_skb_for_tx_status:       ; @mwifiex_clone_skb_for_tx_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_skb_clone
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	bl	_spin_lock_bh
	add	x0, x23, #4
	ldr	w4, [x24]
	mov	x1, x21
	mov	w2, #1
	mov	w3, #16
	bl	_idr_alloc
	mov	x24, x0
	mov	x0, x23
	bl	_spin_unlock_bh
	mov	x0, x19
	tbnz	w24, #31, LBB0_5
; %bb.2:
	bl	_MWIFIEX_SKB_TXCB
	str	w24, [x0]
	ldr	w8, [x0, #8]
	orr	w8, w8, w22
	str	w8, [x0, #8]
	mov	x0, x21
	bl	_MWIFIEX_SKB_TXCB
	str	w24, [x0]
	ldr	w8, [x0, #8]
	orr	w8, w8, w22
	str	w8, [x0, #8]
	cbz	x20, LBB0_9
; %bb.3:
Lloh2:
	adrp	x8, _MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MWIFIEX_BUF_FLAG_ACTION_TX_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x20]
	str	w8, [x0, #4]
	b	LBB0_9
LBB0_5:
	bl	_skb_shared
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_kfree_skb
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_kfree_skb
LBB0_8:
	mov	x19, x21
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MWIFIEX_BUF_FLAG_ACTION_TX_STATUS,4,2 ; @MWIFIEX_BUF_FLAG_ACTION_TX_STATUS
.subsections_via_symbols
