	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp100_stop_interface
_hp100_stop_interface:                  ## @hp100_stop_interface
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	cmpl	$1, (%rax)
	jne	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hp100_BM_shutdown              ## TAILCALL
LBB0_1:
	movq	_HP100_INT_EN@GOTPCREL(%rip), %rax
	movq	_HP100_RESET_LB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_HP100_TRI_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_MMAP_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_SET_HB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_OPTION_LSW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_hp100_outw
	movl	(%rbx), %edi
	callq	_hp100_inw
	movl	%eax, %r14d
	movq	_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hp100_page
	movq	_HP100_RX_EN@GOTPCREL(%rip), %rax
	movq	_HP100_TX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	notl	%edi
	movq	_MAC_CFG_1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_hp100_andb
	movq	_HP100_HW_RST@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.2:
	movl	$6000, %ebx                     ## imm = 0x1770
	movq	_HP100_TX_IDLE@GOTPCREL(%rip), %r14
	movq	_HP100_RX_IDLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_hp100_inb
	movl	(%r13), %ecx
	orl	(%r14), %ecx
	notl	%eax
	testl	%eax, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	jne	LBB0_4
## %bb.6:
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_5:
	movq	_PERFORMANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hp100_page                     ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HP100_INT_EN,4,2               ## @HP100_INT_EN
	.comm	_HP100_RESET_LB,4,2             ## @HP100_RESET_LB
	.comm	_HP100_TRI_INT,4,2              ## @HP100_TRI_INT
	.comm	_HP100_MMAP_DIS,4,2             ## @HP100_MMAP_DIS
	.comm	_HP100_SET_HB,4,2               ## @HP100_SET_HB
	.comm	_OPTION_LSW,4,2                 ## @OPTION_LSW
	.comm	_MAC_CTRL,4,2                   ## @MAC_CTRL
	.comm	_HP100_RX_EN,4,2                ## @HP100_RX_EN
	.comm	_HP100_TX_EN,4,2                ## @HP100_TX_EN
	.comm	_MAC_CFG_1,4,2                  ## @MAC_CFG_1
	.comm	_HP100_HW_RST,4,2               ## @HP100_HW_RST
	.comm	_HP100_TX_IDLE,4,2              ## @HP100_TX_IDLE
	.comm	_HP100_RX_IDLE,4,2              ## @HP100_RX_IDLE
	.comm	_PERFORMANCE,4,2                ## @PERFORMANCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hp100: %s: hp100_stop_interface - timeout\n"

	.comm	_TRACE,4,2                      ## @TRACE
	.no_dead_strip	_hp100_stop_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp100_stop_interface
_hp100_stop_interface:                  ; @hp100_stop_interface
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hp100_BM_shutdown
LBB0_2:
Lloh0:
	adrp	x8, _HP100_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HP100_INT_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HP100_RESET_LB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HP100_RESET_LB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _HP100_TRI_INT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HP100_TRI_INT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _HP100_MMAP_DIS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HP100_MMAP_DIS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _HP100_SET_HB@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HP100_SET_HB@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh15:
	adrp	x20, _OPTION_LSW@GOTPAGE
Lloh16:
	ldr	x20, [x20, _OPTION_LSW@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_hp100_outw
	ldr	w0, [x20]
	bl	_hp100_inw
	mov	x20, x0
Lloh17:
	adrp	x8, _MAC_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAC_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_hp100_page
Lloh20:
	adrp	x8, _HP100_RX_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HP100_RX_EN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _HP100_TX_EN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HP100_TX_EN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mvn	w0, w8
Lloh26:
	adrp	x21, _MAC_CFG_1@GOTPAGE
Lloh27:
	ldr	x21, [x21, _MAC_CFG_1@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_hp100_andb
Lloh28:
	adrp	x8, _HP100_HW_RST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HP100_HW_RST@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.3:
	mov	w20, #6000
Lloh31:
	adrp	x22, _HP100_TX_IDLE@GOTPAGE
Lloh32:
	ldr	x22, [x22, _HP100_TX_IDLE@GOTPAGEOFF]
Lloh33:
	adrp	x23, _HP100_RX_IDLE@GOTPAGE
Lloh34:
	ldr	x23, [x23, _HP100_RX_IDLE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_hp100_inb
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bics	wzr, w8, w0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_4
; %bb.6:
	ldr	w1, [x19, #4]
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_7:
Lloh37:
	adrp	x8, _PERFORMANCE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PERFORMANCE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hp100_page
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_HP100_INT_EN,4,2               ; @HP100_INT_EN
	.comm	_HP100_RESET_LB,4,2             ; @HP100_RESET_LB
	.comm	_HP100_TRI_INT,4,2              ; @HP100_TRI_INT
	.comm	_HP100_MMAP_DIS,4,2             ; @HP100_MMAP_DIS
	.comm	_HP100_SET_HB,4,2               ; @HP100_SET_HB
	.comm	_OPTION_LSW,4,2                 ; @OPTION_LSW
	.comm	_MAC_CTRL,4,2                   ; @MAC_CTRL
	.comm	_HP100_RX_EN,4,2                ; @HP100_RX_EN
	.comm	_HP100_TX_EN,4,2                ; @HP100_TX_EN
	.comm	_MAC_CFG_1,4,2                  ; @MAC_CFG_1
	.comm	_HP100_HW_RST,4,2               ; @HP100_HW_RST
	.comm	_HP100_TX_IDLE,4,2              ; @HP100_TX_IDLE
	.comm	_HP100_RX_IDLE,4,2              ; @HP100_RX_IDLE
	.comm	_PERFORMANCE,4,2                ; @PERFORMANCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hp100: %s: hp100_stop_interface - timeout\n"

	.comm	_TRACE,4,2                      ; @TRACE
	.no_dead_strip	_hp100_stop_interface
.subsections_via_symbols
