	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_post_reset
_rtl8152_post_reset:                    ## @rtl8152_post_reset
	.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
	callq	_usb_get_intfdata
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_determine_ethernet_addr
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	40(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_dev_set_mac_address
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_3:
	movq	40(%rbx), %r14
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	_WORK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%rbx), %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	callq	_rtl_start_rx
	movq	%r14, %rdi
	callq	__rtl8152_set_rx_mode
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%rbx, %rdi
	callq	_napi_enable
	leaq	12(%rbx), %rdi
	callq	_tasklet_enable
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movl	8(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_napi_schedule
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WORK_ENABLE,4,2                ## @WORK_ENABLE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_rtl8152_post_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_post_reset
_rtl8152_post_reset:                    ; @rtl8152_post_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_usb_get_intfdata
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_determine_ethernet_addr
	tbnz	x0, #63, LBB0_3
; %bb.2:
	bl	_rtnl_lock
	ldr	x0, [x19, #40]
	add	x1, sp, #8
	mov	x2, #0
	bl	_dev_set_mac_address
	bl	_rtnl_unlock
LBB0_3:
	ldr	x20, [x19, #40]
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _WORK_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WORK_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_set_bit
	mov	x0, x20
	bl	_netif_carrier_ok
	cbz	x0, LBB0_6
; %bb.5:
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_rtl_start_rx
	mov	x0, x20
	bl	__rtl8152_set_rx_mode
	mov	x0, x21
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x19
	bl	_napi_enable
	add	x0, x19, #12
	bl	_tasklet_enable
	mov	x0, x20
	bl	_netif_wake_queue
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	add	x0, x19, #4
	bl	_list_empty
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_napi_schedule
LBB0_8:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WORK_ENABLE,4,2                ; @WORK_ENABLE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_rtl8152_post_reset
.subsections_via_symbols
