	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_bulk_callback
_write_bulk_callback:                   ## @write_bulk_callback
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	24(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.2:
	movl	(%rdi), %r12d
	movq	24(%r15), %r14
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_netdev_warn
LBB0_5:
	leaq	16(%rbx), %rax
	leaq	8(%r14), %rcx
	jmp	LBB0_7
LBB0_6:
	movl	16(%rbx), %eax
	addl	%eax, 4(%r14)
	leaq	8(%rbx), %rax
	movq	%r14, %rcx
LBB0_7:
	movl	(%rax), %eax
	addl	%eax, (%rcx)
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	20(%r15), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	12(%r15), %edi
	callq	_usb_autopm_put_interface_async
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	_WORK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_RTL8152_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	4(%r15), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx status %d\n"

	.comm	_WORK_ENABLE,4,2                ## @WORK_ENABLE
	.comm	_RTL8152_UNPLUG,4,2             ## @RTL8152_UNPLUG
	.no_dead_strip	_write_bulk_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_bulk_callback
_write_bulk_callback:                   ; @write_bulk_callback
	.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	x21, [x0, #8]
	cbz	x21, LBB0_11
; %bb.1:
	ldr	x19, [x21, #24]
	cbz	x19, LBB0_11
; %bb.2:
	ldr	w22, [x0]
	ldr	x20, [x19, #24]
	cbz	w22, LBB0_6
; %bb.3:
	bl	_net_ratelimit
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_netdev_warn
LBB0_5:
	add	x8, x21, #16
	add	x9, x20, #8
	b	LBB0_7
LBB0_6:
	ldr	w8, [x21, #16]
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
	add	x8, x21, #8
	mov	x9, x20
LBB0_7:
	ldr	w8, [x8]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x1, x19, #20
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #12]
	bl	_usb_autopm_put_interface_async
	mov	x0, x20
	bl	_netif_carrier_ok
	cbz	w0, LBB0_11
; %bb.8:
Lloh2:
	adrp	x8, _WORK_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WORK_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.9:
Lloh5:
	adrp	x8, _RTL8152_UNPLUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL8152_UNPLUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_11
; %bb.10:
	add	x0, x19, #4
	bl	_skb_queue_empty
	cbz	w0, LBB0_12
LBB0_11:
	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_12:
	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	_tasklet_schedule
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx status %d\n"

	.comm	_WORK_ENABLE,4,2                ; @WORK_ENABLE
	.comm	_RTL8152_UNPLUG,4,2             ; @RTL8152_UNPLUG
	.no_dead_strip	_write_bulk_callback
.subsections_via_symbols
