	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_tx
_carl9170_tx:                           ## @carl9170_tx
	.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	%rdi, %r12
	movl	$0, (%rdi)
	callq	_IS_STARTED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, %rdi
	callq	_carl9170_usb_handle_tx_err
	movq	8(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.2:
	leaq	24(%r12), %r14
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	8(%r12), %rbx
	movl	(%rbx), %eax
	cmpq	%rax, %r15
	jae	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%r15,4), %rbx
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	32(%r12), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_carl9170_tx_pick_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_carl9170_tx_ps_drop
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_carl9170_bar_check
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___carl9170_get_queue
	movl	%eax, %edi
	shlq	$2, %rdi
	addq	16(%r12), %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movq	%rbx, %rdi
	callq	_carl9170_tx_get_skb
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_carl9170_usb_tx
	movl	$1, %r13d
	jmp	LBB0_3
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.10:
	addq	$4, %r12
	movq	_CARL9170_TX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_delayed_work   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_TX_TIMEOUT,4,2        ## @CARL9170_TX_TIMEOUT
	.no_dead_strip	_carl9170_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_tx
_carl9170_tx:                           ; @carl9170_tx
	.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	x19, x0
	str	wzr, [x0]
	bl	_IS_STARTED
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x0, x19
	bl	_carl9170_usb_handle_tx_err
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_1
; %bb.3:
	mov	x20, #0
	mov	w23, #0
	add	x21, x19, #24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x22, [x19, #8]
	ldr	w8, [x22]
	cmp	x20, x8
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x20, lsl #2
	bl	_skb_queue_empty
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #32]
	add	x1, x8, x20, lsl #2
	mov	x0, x19
	bl	_carl9170_tx_pick_skb
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_carl9170_tx_ps_drop
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_carl9170_bar_check
	mov	x0, x21
	bl	_atomic_inc
	mov	x0, x19
	mov	x1, x20
	bl	___carl9170_get_queue
	ldr	x8, [x19, #16]
	add	x0, x8, w0, uxtw #2
	mov	x1, x22
	bl	_skb_queue_tail
	mov	x0, x22
	bl	_carl9170_tx_get_skb
	mov	x0, x19
	mov	x1, x22
	bl	_carl9170_usb_tx
	mov	w23, #1
	b	LBB0_5
LBB0_9:
	cbz	w23, LBB0_1
; %bb.10:
	add	x19, x19, #4
Lloh0:
	adrp	x8, _CARL9170_TX_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARL9170_TX_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x22
	mov	x1, 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
	b	_ieee80211_queue_delayed_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_TX_TIMEOUT,4,2        ; @CARL9170_TX_TIMEOUT
	.no_dead_strip	_carl9170_tx
.subsections_via_symbols
