	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp100_check_lan
_hp100_check_lan:                       ## @hp100_check_lan
	.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
	movq	%rdi, %rbx
	callq	_netdev_priv
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	jns	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_hp100_stop_interface
	movq	%rbx, %rdi
	callq	_hp100_sense_lan
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	_HP100_LAN_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hp100_login_to_vg_hub
	movl	%eax, 8(%r15)
LBB0_5:
	movq	%rbx, %rdi
	callq	_hp100_start_interface
	jmp	LBB0_6
LBB0_2:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	%rbx, %rdi
	callq	_hp100_start_interface
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hp100: %s: no connection found - check wire\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HP100_LAN_100,8,3              ## @HP100_LAN_100
	.no_dead_strip	_hp100_check_lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp100_check_lan
_hp100_check_lan:                       ; @hp100_check_lan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	tbz	x8, #63, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_hp100_stop_interface
	mov	x0, x19
	bl	_hp100_sense_lan
	str	x0, [x20]
	tbnz	x0, #63, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _HP100_LAN_100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HP100_LAN_100@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_hp100_login_to_vg_hub
	str	w0, [x20, #8]
LBB0_4:
	mov	x0, x19
	bl	_hp100_start_interface
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	x0, x19
	bl	_hp100_start_interface
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hp100: %s: no connection found - check wire\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HP100_LAN_100,8,3              ; @HP100_LAN_100
	.no_dead_strip	_hp100_check_lan
.subsections_via_symbols
