	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp100_hwinit
_hp100_hwinit:                          ## @hp100_hwinit
	.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, %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	_IRQ_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_hp100_outw
	movq	_HP100_INT_EN@GOTPCREL(%rip), %r13
	movq	_HP100_RESET_LB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	orl	(%r13), %edi
	movq	_OPTION_LSW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_hp100_outw
	movq	_HP100_TRI_INT@GOTPCREL(%rip), %rcx
	movq	_HP100_SET_HB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%rcx), %edi
	movl	(%r12), %esi
	callq	_hp100_outw
	cmpl	$1, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_hp100_BM_shutdown
	xorl	%eax, %eax
	callq	_wait
	jmp	LBB0_3
LBB0_2:
	movl	(%r15), %edi
	orl	(%r13), %edi
	movl	(%r12), %esi
	callq	_hp100_outw
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hp100_cascade_reset
	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), %rax
	movl	(%rax), %esi
	callq	_hp100_andb
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hp100_load_eeprom
	xorl	%eax, %eax
	callq	_wait
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hp100_cascade_reset
	movq	_HP100_DEBUG_EN@GOTPCREL(%rip), %rax
	movq	_HP100_RX_HDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_HP100_EE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_BM_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_BM_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_RESET_HB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_FAKE_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r13), %edi
	movq	_HP100_MEM_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_IO_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r15), %edi
	movl	(%r12), %esi
	callq	_hp100_outw
	movq	_HP100_MMAP_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HP100_TRI_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HP100_SET_HB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	(%r12), %esi
	callq	_hp100_outw
	movq	_HP100_PRIORITY_TX@GOTPCREL(%rip), %rax
	movq	_HP100_ADV_NXT_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_HP100_TX_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	(%r15), %edi
	movq	_OPTION_MSW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hp100_outb
	movq	%rbx, %rdi
	callq	_hp100_mmuinit
	xorl	%eax, %eax
	callq	_wait
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hp100_cascade_reset
	movq	8(%r14), %rax
	movq	_HP100_LAN_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_HP100_LAN_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hp100_login_to_vg_hub          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PERFORMANCE,4,2                ## @PERFORMANCE
	.comm	_IRQ_MASK,4,2                   ## @IRQ_MASK
	.comm	_IRQ_STATUS,4,2                 ## @IRQ_STATUS
	.comm	_HP100_INT_EN,4,2               ## @HP100_INT_EN
	.comm	_HP100_RESET_LB,4,2             ## @HP100_RESET_LB
	.comm	_OPTION_LSW,4,2                 ## @OPTION_LSW
	.comm	_HP100_TRI_INT,4,2              ## @HP100_TRI_INT
	.comm	_HP100_SET_HB,4,2               ## @HP100_SET_HB
	.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_DEBUG_EN,4,2             ## @HP100_DEBUG_EN
	.comm	_HP100_RX_HDR,4,2               ## @HP100_RX_HDR
	.comm	_HP100_EE_EN,4,2                ## @HP100_EE_EN
	.comm	_HP100_BM_WRITE,4,2             ## @HP100_BM_WRITE
	.comm	_HP100_BM_READ,4,2              ## @HP100_BM_READ
	.comm	_HP100_RESET_HB,4,2             ## @HP100_RESET_HB
	.comm	_HP100_FAKE_INT,4,2             ## @HP100_FAKE_INT
	.comm	_HP100_MEM_EN,4,2               ## @HP100_MEM_EN
	.comm	_HP100_IO_EN,4,2                ## @HP100_IO_EN
	.comm	_HP100_MMAP_DIS,4,2             ## @HP100_MMAP_DIS
	.comm	_HP100_PRIORITY_TX,4,2          ## @HP100_PRIORITY_TX
	.comm	_HP100_ADV_NXT_PKT,4,2          ## @HP100_ADV_NXT_PKT
	.comm	_HP100_TX_CMD,4,2               ## @HP100_TX_CMD
	.comm	_OPTION_MSW,4,2                 ## @OPTION_MSW
	.comm	_HP100_LAN_100,8,3              ## @HP100_LAN_100
	.comm	_HP100_LAN_ERR,8,3              ## @HP100_LAN_ERR
	.comm	_TRACE,4,2                      ## @TRACE
	.no_dead_strip	_hp100_hwinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp100_hwinit
_hp100_hwinit:                          ; @hp100_hwinit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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
Lloh6:
	adrp	x8, _IRQ_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #65535
	bl	_hp100_outw
Lloh9:
	adrp	x25, _HP100_INT_EN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HP100_INT_EN@GOTPAGEOFF]
Lloh11:
	adrp	x21, _HP100_RESET_LB@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HP100_RESET_LB@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w0, w9, w8
Lloh13:
	adrp	x22, _OPTION_LSW@GOTPAGE
Lloh14:
	ldr	x22, [x22, _OPTION_LSW@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_hp100_outw
Lloh15:
	adrp	x24, _HP100_TRI_INT@GOTPAGE
Lloh16:
	ldr	x24, [x24, _HP100_TRI_INT@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh17:
	adrp	x23, _HP100_SET_HB@GOTPAGE
Lloh18:
	ldr	x23, [x23, _HP100_SET_HB@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w0, w9, w8
	ldr	w1, [x22]
	bl	_hp100_outw
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_hp100_BM_shutdown
	bl	_wait
	b	LBB0_3
LBB0_2:
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w0, w9, w8
	ldr	w1, [x22]
	bl	_hp100_outw
	mov	x0, x19
	mov	w1, #1
	bl	_hp100_cascade_reset
Lloh19:
	adrp	x8, _MAC_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAC_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_hp100_page
Lloh22:
	adrp	x8, _HP100_RX_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HP100_RX_EN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _HP100_TX_EN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HP100_TX_EN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mvn	w0, w8
Lloh28:
	adrp	x8, _MAC_CFG_1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAC_CFG_1@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_hp100_andb
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_hp100_load_eeprom
	bl	_wait
	mov	x0, x19
	mov	w1, #1
	bl	_hp100_cascade_reset
Lloh31:
	adrp	x8, _HP100_DEBUG_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HP100_DEBUG_EN@GOTPAGEOFF]
Lloh33:
	adrp	x9, _HP100_RX_HDR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HP100_RX_HDR@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh37:
	adrp	x9, _HP100_EE_EN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _HP100_EE_EN@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _HP100_BM_WRITE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _HP100_BM_WRITE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
Lloh43:
	adrp	x10, _HP100_BM_READ@GOTPAGE
Lloh44:
	ldr	x10, [x10, _HP100_BM_READ@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh45:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _HP100_RESET_HB@GOTPAGE
Lloh47:
	ldr	x9, [x9, _HP100_RESET_HB@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh49:
	adrp	x9, _HP100_FAKE_INT@GOTPAGE
Lloh50:
	ldr	x9, [x9, _HP100_FAKE_INT@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh52:
	adrp	x9, _HP100_MEM_EN@GOTPAGE
Lloh53:
	ldr	x9, [x9, _HP100_MEM_EN@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
Lloh55:
	adrp	x10, _HP100_IO_EN@GOTPAGE
Lloh56:
	ldr	x10, [x10, _HP100_IO_EN@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh57:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w0, w8, w9
	ldr	w1, [x22]
	bl	_hp100_outw
Lloh58:
	adrp	x8, _HP100_MMAP_DIS@GOTPAGE
Lloh59:
	ldr	x8, [x8, _HP100_MMAP_DIS@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh60:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w0, w8, w9
	ldr	w1, [x22]
	bl	_hp100_outw
Lloh61:
	adrp	x8, _HP100_PRIORITY_TX@GOTPAGE
Lloh62:
	ldr	x8, [x8, _HP100_PRIORITY_TX@GOTPAGEOFF]
Lloh63:
	adrp	x9, _HP100_ADV_NXT_PKT@GOTPAGE
Lloh64:
	ldr	x9, [x9, _HP100_ADV_NXT_PKT@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
Lloh66:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh67:
	adrp	x9, _HP100_TX_CMD@GOTPAGE
Lloh68:
	ldr	x9, [x9, _HP100_TX_CMD@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w0, w8, w9
Lloh70:
	adrp	x8, _OPTION_MSW@GOTPAGE
Lloh71:
	ldr	x8, [x8, _OPTION_MSW@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	bl	_hp100_outb
	mov	x0, x19
	bl	_hp100_mmuinit
	bl	_wait
	mov	x0, x19
	mov	w1, #0
	bl	_hp100_cascade_reset
	ldr	x8, [x20, #8]
Lloh73:
	adrp	x9, _HP100_LAN_100@GOTPAGE
Lloh74:
	ldr	x9, [x9, _HP100_LAN_100@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
Lloh76:
	adrp	x9, _HP100_LAN_ERR@GOTPAGE
Lloh77:
	ldr	x9, [x9, _HP100_LAN_ERR@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hp100_login_to_vg_hub
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh65
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_PERFORMANCE,4,2                ; @PERFORMANCE
	.comm	_IRQ_MASK,4,2                   ; @IRQ_MASK
	.comm	_IRQ_STATUS,4,2                 ; @IRQ_STATUS
	.comm	_HP100_INT_EN,4,2               ; @HP100_INT_EN
	.comm	_HP100_RESET_LB,4,2             ; @HP100_RESET_LB
	.comm	_OPTION_LSW,4,2                 ; @OPTION_LSW
	.comm	_HP100_TRI_INT,4,2              ; @HP100_TRI_INT
	.comm	_HP100_SET_HB,4,2               ; @HP100_SET_HB
	.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_DEBUG_EN,4,2             ; @HP100_DEBUG_EN
	.comm	_HP100_RX_HDR,4,2               ; @HP100_RX_HDR
	.comm	_HP100_EE_EN,4,2                ; @HP100_EE_EN
	.comm	_HP100_BM_WRITE,4,2             ; @HP100_BM_WRITE
	.comm	_HP100_BM_READ,4,2              ; @HP100_BM_READ
	.comm	_HP100_RESET_HB,4,2             ; @HP100_RESET_HB
	.comm	_HP100_FAKE_INT,4,2             ; @HP100_FAKE_INT
	.comm	_HP100_MEM_EN,4,2               ; @HP100_MEM_EN
	.comm	_HP100_IO_EN,4,2                ; @HP100_IO_EN
	.comm	_HP100_MMAP_DIS,4,2             ; @HP100_MMAP_DIS
	.comm	_HP100_PRIORITY_TX,4,2          ; @HP100_PRIORITY_TX
	.comm	_HP100_ADV_NXT_PKT,4,2          ; @HP100_ADV_NXT_PKT
	.comm	_HP100_TX_CMD,4,2               ; @HP100_TX_CMD
	.comm	_OPTION_MSW,4,2                 ; @OPTION_MSW
	.comm	_HP100_LAN_100,8,3              ; @HP100_LAN_100
	.comm	_HP100_LAN_ERR,8,3              ; @HP100_LAN_ERR
	.comm	_TRACE,4,2                      ; @TRACE
	.no_dead_strip	_hp100_hwinit
.subsections_via_symbols
