	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_usb_submit_data_urb
_carl9170_usb_submit_data_urb:          ## @carl9170_usb_submit_data_urb
	.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	%rdi, %rbx
	callq	_atomic_inc_return
	movq	_AR9170_NUM_TX_URBS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_8
## %bb.1:
	leaq	20(%rbx), %rdi
	callq	_usb_get_from_anchor
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	leaq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_usb_anchor_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movq	%r14, %rdi
	callq	_usb_unanchor_urb
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	callq	_usb_anchor_urb
LBB0_6:
	movq	%r14, %rdi
	callq	_usb_free_urb
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9170_NUM_TX_URBS,8,3         ## @AR9170_NUM_TX_URBS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx submit failed (%d)\n"

	.no_dead_strip	_carl9170_usb_submit_data_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_usb_submit_data_urb
_carl9170_usb_submit_data_urb:          ; @carl9170_usb_submit_data_urb
	.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	x19, x0
	bl	_atomic_inc_return
Lloh0:
	adrp	x8, _AR9170_NUM_TX_URBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR9170_NUM_TX_URBS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_8
; %bb.1:
	add	x0, x19, #20
	bl	_usb_get_from_anchor
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	add	x1, x19, #16
	bl	_usb_anchor_urb
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_submit_urb
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	bl	_net_ratelimit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	ldr	w2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	bl	_usb_unanchor_urb
	add	x1, x19, #4
	mov	x0, x20
	bl	_usb_anchor_urb
LBB0_6:
	mov	x0, x20
	bl	_usb_free_urb
	cmp	w21, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_8
; %bb.7:
	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_8:
	mov	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	_atomic_dec
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9170_NUM_TX_URBS,8,3         ; @AR9170_NUM_TX_URBS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx submit failed (%d)\n"

	.no_dead_strip	_carl9170_usb_submit_data_urb
.subsections_via_symbols
