	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8152_open
_rtl8152_open:                          ## @rtl8152_open
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_alloc_all_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	(%r12), %edi
	callq	_usb_autopm_get_interface
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	*32(%r12)
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	_WORK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r12), %rsi
	callq	_set_bit
	movl	24(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movl	20(%r12), %edi
	callq	_netif_device_detach
LBB0_6:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_netif_warn
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r12), %edi
	callq	_usb_autopm_put_interface
	jmp	LBB0_7
LBB0_2:
	movl	%eax, %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_free_all_mem
	jmp	LBB0_8
LBB0_9:
	leaq	16(%r12), %rdi
	callq	_napi_enable
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_tasklet_enable
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r12), %edi
	callq	_usb_autopm_put_interface
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intr_urb submit failed: %d\n"

	.comm	_rtl_notifier,4,2               ## @rtl_notifier
	.no_dead_strip	_rtl8152_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8152_open
_rtl8152_open:                          ; @rtl8152_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_alloc_all_mem
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	w0, [x19]
	bl	_usb_autopm_get_interface
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_netif_start_queue
Lloh0:
	adrp	x8, _WORK_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WORK_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_set_bit
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #20]
	bl	_netif_device_detach
LBB0_5:
Lloh9:
	adrp	x8, _ifup@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x4, x22
	bl	_netif_warn
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
	b	LBB0_7
LBB0_6:
	mov	x22, x0
LBB0_7:
	mov	x0, x19
	bl	_free_all_mem
	b	LBB0_9
LBB0_8:
	add	x0, x19, #16
	bl	_napi_enable
	add	x0, x19, #12
	bl	_tasklet_enable
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WORK_ENABLE,4,2                ; @WORK_ENABLE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intr_urb submit failed: %d\n"

	.comm	_rtl_notifier,4,2               ; @rtl_notifier
	.no_dead_strip	_rtl8152_open
.subsections_via_symbols
