	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_open
_lan78xx_open:                          ## @lan78xx_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, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_usb_autopm_get_interface
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	(%r15), %edi
	callq	_phy_start
	movq	_ifup@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_dbg
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_lan78xx_init_stats
	movq	_EVENT_DEV_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_netif_start_queue
	movl	$0, (%rbx)
	movq	_EVENT_LINK_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lan78xx_defer_kevent
	jmp	LBB0_5
LBB0_3:
	movl	(%r12), %esi
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_netif_err
LBB0_5:
	movl	4(%rbx), %edi
	callq	_usb_autopm_put_interface
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy initialised successfully"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"intr submit %d\n"

	.comm	_EVENT_DEV_OPEN,4,2             ## @EVENT_DEV_OPEN
	.comm	_EVENT_LINK_RESET,4,2           ## @EVENT_LINK_RESET
	.no_dead_strip	_lan78xx_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_open
_lan78xx_open:                          ; @lan78xx_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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_usb_autopm_get_interface
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w0, [x21]
	bl	_phy_start
Lloh0:
	adrp	x22, _ifup@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ifup@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x19, #12]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_lan78xx_init_stats
Lloh7:
	adrp	x8, _EVENT_DEV_OPEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVENT_DEV_OPEN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	x0, x21
	bl	_netif_start_queue
	str	wzr, [x19]
Lloh10:
	adrp	x8, _EVENT_LINK_RESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVENT_LINK_RESET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lan78xx_defer_kevent
	b	LBB0_5
LBB0_4:
	ldr	w1, [x22]
	ldr	w2, [x19, #12]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_err
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_usb_autopm_put_interface
LBB0_6:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy initialised successfully"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"intr submit %d\n"

	.comm	_EVENT_DEV_OPEN,4,2             ; @EVENT_DEV_OPEN
	.comm	_EVENT_LINK_RESET,4,2           ; @EVENT_LINK_RESET
	.no_dead_strip	_lan78xx_open
.subsections_via_symbols
