	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8152_submit_rx
_r8152_submit_rx:                       ## @r8152_submit_rx
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_RTL8152_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_WORK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	4(%r13), %edi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%r13), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movl	16(%r14), %ecx
	movl	16(%r13), %r8d
	movq	_read_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r14, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	8(%r14), %rdi
	movl	%r12d, %esi
	callq	_usb_submit_urb
	movl	%eax, %r12d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_rtl_set_unplug
	movl	4(%r13), %edi
	callq	_netif_device_detach
	jmp	LBB0_7
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:
	movq	8(%r14), %rax
	movq	$0, (%rax)
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	12(%r13), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %r8
	movl	%r12d, %r9d
	callq	_netif_err
	movq	%r13, %rdi
	callq	_napi_schedule
LBB0_7:
	movl	%r12d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8152_UNPLUG,4,2             ## @RTL8152_UNPLUG
	.comm	_WORK_ENABLE,4,2                ## @WORK_ENABLE
	.comm	_read_bulk_callback,8,3         ## @read_bulk_callback
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't submit rx[%p], ret = %d\n"

	.no_dead_strip	_r8152_submit_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8152_submit_rx
_r8152_submit_rx:                       ; @r8152_submit_rx
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RTL8152_UNPLUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8152_UNPLUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #24
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	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_3:
Lloh3:
	adrp	x8, _WORK_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WORK_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbz	w0, LBB0_1
; %bb.5:
	ldr	x22, [x20, #8]
	ldr	w23, [x19, #20]
	mov	x0, x23
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w3, [x20, #16]
	ldr	w4, [x19, #16]
Lloh6:
	adrp	x8, _read_bulk_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _read_bulk_callback@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_usb_submit_urb
	mov	x21, x0
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_rtl_set_unplug
	ldr	w0, [x19, #4]
	bl	_netif_device_detach
	b	LBB0_2
LBB0_7:
	cbz	w21, LBB0_2
; %bb.8:
	ldr	x8, [x20, #8]
	str	xzr, [x8]
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x1, x19, #12
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x8, _rx_err@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x21
	bl	_netif_err
	mov	x0, x19
	bl	_napi_schedule
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8152_UNPLUG,4,2             ; @RTL8152_UNPLUG
	.comm	_WORK_ENABLE,4,2                ; @WORK_ENABLE
	.comm	_read_bulk_callback,8,3         ; @read_bulk_callback
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't submit rx[%p], ret = %d\n"

	.no_dead_strip	_r8152_submit_rx
.subsections_via_symbols
