	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_from_tx_queue
_remove_from_tx_queue:                  ## @remove_from_tx_queue
	.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	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	movl	%esi, %ecx
	movq	_R3964_MSG_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r14), %edx
	xorl	%ecx, %ecx
LBB0_5:
	xorl	%r8d, %r8d
	callq	_add_msg
	leaq	20(%rbx), %rdi
	callq	_wake_up_interruptible
LBB0_6:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	$0, (%rbx)
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_kfree
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_TRACE_M
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE_Q                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R3964_MSG_ACK,4,2              ## @R3964_MSG_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remove_from_tx_queue - kfree %p"

L_.str.1:                               ## @.str.1
	.asciz	"remove_from_tx_queue: tx_first = %p, tx_last = %p"

	.no_dead_strip	_remove_from_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_from_tx_queue
_remove_from_tx_queue:                  ; @remove_from_tx_queue
	.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
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x3, x1
Lloh0:
	adrp	x8, _R3964_MSG_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R3964_MSG_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cbz	w3, LBB0_5
; %bb.3:
	mov	w2, #0
	b	LBB0_6
LBB0_4:
	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
LBB0_5:
	ldr	w2, [x20, #8]
LBB0_6:
	mov	x4, #0
	bl	_add_msg
	add	x0, x19, #20
	bl	_wake_up_interruptible
LBB0_7:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	str	x8, [x19, #8]
	cbnz	x8, LBB0_9
; %bb.8:
	str	xzr, [x19]
LBB0_9:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_kfree
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE_M
	ldp	x2, x1, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_TRACE_Q
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_R3964_MSG_ACK,4,2              ; @R3964_MSG_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remove_from_tx_queue - kfree %p"

l_.str.1:                               ; @.str.1
	.asciz	"remove_from_tx_queue: tx_first = %p, tx_last = %p"

	.no_dead_strip	_remove_from_tx_queue
.subsections_via_symbols
