	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_diva
_reset_diva:                            ## @reset_diva
	.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, %rbx
	movq	(%rdi), %rax
	movq	_DIVA_IPAC_ISA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.7:
	movl	36(%rbx), %esi
	movl	40(%rbx), %edi
	movq	_IPAC_POTA2@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$32, %ecx
	callq	_writereg
	movl	$10, %edi
	callq	_mdelay
	movl	36(%rbx), %esi
	movl	40(%rbx), %edi
	movl	(%r14), %edx
	xorl	%ecx, %ecx
	callq	_writereg
	movl	$10, %edi
	callq	_mdelay
	movl	36(%rbx), %esi
	movl	40(%rbx), %edi
	movq	_IPAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$192, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writereg                       ## TAILCALL
LBB0_1:
	movq	_DIVA_IPAC_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.8:
	movq	24(%rbx), %r14
	movq	_PITA_MISC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_PITA_PARA_SOFTRESET@GOTPCREL(%rip), %rax
	movq	_PITA_PARA_MPX_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15,%r14)
	movl	$10, %edi
	callq	_mdelay
	movl	(%r12), %eax
	movl	%eax, (%r15,%r14)
	movl	$10, %edi
	callq	_mdelay
	movl	32(%rbx), %edi
	movq	_IPAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$192, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memwritereg                    ## TAILCALL
LBB0_2:
	movq	_DIVA_IPACX_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.9:
	movq	24(%rbx), %r14
	movq	_PITA_MISC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_PITA_PARA_SOFTRESET@GOTPCREL(%rip), %rax
	movq	_PITA_PARA_MPX_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15,%r14)
	movl	$10, %edi
	callq	_mdelay
	movq	_PITA_SER_SOFTRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	movl	%eax, (%r15,%r14)
	movl	$10, %edi
	callq	_mdelay
	movq	_IPACX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemWriteISAC_IPACX             ## TAILCALL
LBB0_3:
	movl	$0, 8(%rbx)
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_byteout
	movl	$10, %edi
	callq	_mdelay
	movq	_DIVA_RESET@GOTPCREL(%rip), %rax
	movl	8(%rbx), %esi
	orl	(%rax), %esi
	movl	%esi, 8(%rbx)
	movq	16(%rbx), %rdi
	callq	_byteout
	movl	$10, %edi
	callq	_mdelay
	movq	(%rbx), %rax
	movq	_DIVA_ISA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_DIVA_ISA_LED_A@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	24(%rbx), %rdi
	addq	$105, %rdi
	movl	$9, %esi
	callq	_byteout
	movq	_DIVA_PCI_LED_A@GOTPCREL(%rip), %rax
LBB0_6:
	movl	8(%rbx), %esi
	orl	(%rax), %esi
	movl	%esi, 8(%rbx)
	movq	16(%rbx), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_byteout                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIVA_IPAC_ISA,8,3              ## @DIVA_IPAC_ISA
	.comm	_IPAC_POTA2,4,2                 ## @IPAC_POTA2
	.comm	_IPAC_MASK,4,2                  ## @IPAC_MASK
	.comm	_DIVA_IPAC_PCI,8,3              ## @DIVA_IPAC_PCI
	.comm	_PITA_MISC_REG,8,3              ## @PITA_MISC_REG
	.comm	_PITA_PARA_SOFTRESET,4,2        ## @PITA_PARA_SOFTRESET
	.comm	_PITA_PARA_MPX_MODE,4,2         ## @PITA_PARA_MPX_MODE
	.comm	_DIVA_IPACX_PCI,8,3             ## @DIVA_IPACX_PCI
	.comm	_PITA_SER_SOFTRESET,4,2         ## @PITA_SER_SOFTRESET
	.comm	_IPACX_MASK,4,2                 ## @IPACX_MASK
	.comm	_DIVA_RESET,4,2                 ## @DIVA_RESET
	.comm	_DIVA_ISA,8,3                   ## @DIVA_ISA
	.comm	_DIVA_ISA_LED_A,4,2             ## @DIVA_ISA_LED_A
	.comm	_DIVA_PCI_LED_A,4,2             ## @DIVA_PCI_LED_A
	.no_dead_strip	_reset_diva
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_diva
_reset_diva:                            ; @reset_diva
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DIVA_IPAC_ISA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIVA_IPAC_ISA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #36]
Lloh3:
	adrp	x20, _IPAC_POTA2@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IPAC_POTA2@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w3, #32
	bl	_writereg
	mov	w0, #10
	bl	_mdelay
	ldp	w1, w0, [x19, #36]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_writereg
	mov	w0, #10
	bl	_mdelay
Lloh5:
	adrp	x8, _IPAC_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPAC_MASK@GOTPAGEOFF]
	ldp	w1, w0, [x19, #36]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #192
	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
	b	_writereg
LBB0_2:
Lloh8:
	adrp	x9, _DIVA_IPAC_PCI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DIVA_IPAC_PCI@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x20, [x19, #24]
Lloh11:
	adrp	x8, _PITA_MISC_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PITA_MISC_REG@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
Lloh14:
	adrp	x8, _PITA_PARA_SOFTRESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PITA_PARA_SOFTRESET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x22, _PITA_PARA_MPX_MODE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _PITA_PARA_MPX_MODE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x21, x20]
	mov	w0, #10
	bl	_mdelay
	ldr	w8, [x22]
	str	w8, [x21, x20]
	mov	w0, #10
	bl	_mdelay
	ldr	w0, [x19, #32]
Lloh19:
	adrp	x8, _IPAC_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IPAC_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #192
	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
	b	_memwritereg
LBB0_4:
Lloh22:
	adrp	x9, _DIVA_IPACX_PCI@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DIVA_IPACX_PCI@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x20, [x19, #24]
Lloh25:
	adrp	x8, _PITA_MISC_REG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PITA_MISC_REG@GOTPAGEOFF]
Lloh27:
	ldr	x21, [x8]
Lloh28:
	adrp	x8, _PITA_PARA_SOFTRESET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PITA_PARA_SOFTRESET@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x22, _PITA_PARA_MPX_MODE@GOTPAGE
Lloh32:
	ldr	x22, [x22, _PITA_PARA_MPX_MODE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x21, x20]
	mov	w0, #10
	bl	_mdelay
	ldr	w8, [x22]
Lloh33:
	adrp	x9, _PITA_SER_SOFTRESET@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PITA_SER_SOFTRESET@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, x20]
	mov	w0, #10
	bl	_mdelay
Lloh36:
	adrp	x8, _IPACX_MASK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPACX_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	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
	b	_MemWriteISAC_IPACX
LBB0_6:
	str	wzr, [x19, #8]
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_byteout
	mov	w0, #10
	bl	_mdelay
Lloh39:
	adrp	x8, _DIVA_RESET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DIVA_RESET@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w1, w9, w8
	str	w1, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_byteout
	mov	w0, #10
	bl	_mdelay
	ldr	x8, [x19]
Lloh42:
	adrp	x9, _DIVA_ISA@GOTPAGE
Lloh43:
	ldr	x9, [x9, _DIVA_ISA@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh45:
	adrp	x8, _DIVA_ISA_LED_A@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DIVA_ISA_LED_A@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #24]
	add	x0, x8, #105
	mov	w1, #9
	bl	_byteout
Lloh47:
	adrp	x8, _DIVA_PCI_LED_A@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DIVA_PCI_LED_A@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w1, w9, w8
	str	w1, [x19, #8]
	ldr	x0, [x19, #16]
	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
	b	_byteout
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_DIVA_IPAC_ISA,8,3              ; @DIVA_IPAC_ISA
	.comm	_IPAC_POTA2,4,2                 ; @IPAC_POTA2
	.comm	_IPAC_MASK,4,2                  ; @IPAC_MASK
	.comm	_DIVA_IPAC_PCI,8,3              ; @DIVA_IPAC_PCI
	.comm	_PITA_MISC_REG,8,3              ; @PITA_MISC_REG
	.comm	_PITA_PARA_SOFTRESET,4,2        ; @PITA_PARA_SOFTRESET
	.comm	_PITA_PARA_MPX_MODE,4,2         ; @PITA_PARA_MPX_MODE
	.comm	_DIVA_IPACX_PCI,8,3             ; @DIVA_IPACX_PCI
	.comm	_PITA_SER_SOFTRESET,4,2         ; @PITA_SER_SOFTRESET
	.comm	_IPACX_MASK,4,2                 ; @IPACX_MASK
	.comm	_DIVA_RESET,4,2                 ; @DIVA_RESET
	.comm	_DIVA_ISA,8,3                   ; @DIVA_ISA
	.comm	_DIVA_ISA_LED_A,4,2             ; @DIVA_ISA_LED_A
	.comm	_DIVA_PCI_LED_A,4,2             ; @DIVA_PCI_LED_A
	.no_dead_strip	_reset_diva
.subsections_via_symbols
