	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp100_close
_hp100_close:                           ## @hp100_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_PERFORMANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hp100_page
	movq	_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65278, %edi                    ## imm = 0xFEFE
	callq	_hp100_outw
	movq	%rbx, %rdi
	callq	_hp100_stop_interface
	movq	(%r14), %rax
	movq	_HP100_LAN_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hp100_login_to_vg_hub
	movl	%eax, 8(%r14)
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERFORMANCE,4,2                ## @PERFORMANCE
	.comm	_IRQ_MASK,4,2                   ## @IRQ_MASK
	.comm	_HP100_LAN_100,8,3              ## @HP100_LAN_100
	.comm	_OPTION_LSW,4,2                 ## @OPTION_LSW
	.comm	_TRACE,4,2                      ## @TRACE
	.no_dead_strip	_hp100_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp100_close
_hp100_close:                           ; @hp100_close
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _PERFORMANCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERFORMANCE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_hp100_page
Lloh3:
	adrp	x8, _IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #65278
	bl	_hp100_outw
	mov	x0, x19
	bl	_hp100_stop_interface
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _HP100_LAN_100@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HP100_LAN_100@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_hp100_login_to_vg_hub
	str	w0, [x20, #8]
LBB0_2:
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PERFORMANCE,4,2                ; @PERFORMANCE
	.comm	_IRQ_MASK,4,2                   ; @IRQ_MASK
	.comm	_HP100_LAN_100,8,3              ; @HP100_LAN_100
	.comm	_OPTION_LSW,4,2                 ; @OPTION_LSW
	.comm	_TRACE,4,2                      ; @TRACE
	.no_dead_strip	_hp100_close
.subsections_via_symbols
