	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_elsa
_reset_elsa:                            ## @reset_elsa
	.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
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	xorl	%esi, %esi
	callq	_byteout
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TimerRun
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movl	8(%rbx), %eax
	orl	$80, %eax
	movq	_ELSA_ISDN_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%esi, 8(%rbx)
	movq	48(%rbx), %rdi
	callq	_byteout
	movq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_byteout
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TimerRun
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movl	8(%rbx), %esi
	orl	(%r14), %esi
	movl	%esi, 8(%rbx)
	movq	48(%rbx), %rdi
	callq	_byteout
	movq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_byteout
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TimerRun
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movl	$255, %esi
	callq	_byteout
LBB0_9:
	movq	(%rbx), %rax
	movq	_ELSA_QS1000PCI@GOTPCREL(%rip), %r15
	movq	_ELSA_QS3000PCI@GOTPCREL(%rip), %r14
	movq	_ELSA_PCMCIA_IPAC@GOTPCREL(%rip), %r12
	cmpq	(%r15), %rax
	je	LBB0_12
## %bb.10:
	cmpq	(%r14), %rax
	je	LBB0_12
## %bb.11:
	cmpq	(%r12), %rax
	jne	LBB0_17
LBB0_12:
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	_IPAC_POTA2@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$32, %ecx
	callq	_writereg
	movl	$10, %edi
	callq	_mdelay
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_writereg
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	_IPAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$192, %ecx
	callq	_writereg
	movl	$10, %edi
	callq	_mdelay
	movq	(%rbx), %rax
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.14:
	movq	_IPAC_PCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %ecx
	callq	_writereg
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	_IPAC_ACFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %ecx
	callq	_writereg
	movl	$248, %ecx
	jmp	LBB0_15
LBB0_13:
	movq	_IPAC_ACFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_writereg
	movl	$60, %ecx
LBB0_15:
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	_IPAC_AOE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_writereg
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	_IPAC_ATX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, %ecx
	callq	_writereg
	movq	(%rbx), %rax
	movl	$65, %esi
	cmpq	(%r15), %rax
	je	LBB0_18
## %bb.16:
	movl	$67, %esi
	cmpq	(%r14), %rax
	jne	LBB0_17
LBB0_18:
	movq	16(%rbx), %rdi
	addq	$76, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_byteout                        ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELSA_ISDN_RESET,4,2            ## @ELSA_ISDN_RESET
	.comm	_ELSA_QS1000PCI,8,3             ## @ELSA_QS1000PCI
	.comm	_ELSA_QS3000PCI,8,3             ## @ELSA_QS3000PCI
	.comm	_ELSA_PCMCIA_IPAC,8,3           ## @ELSA_PCMCIA_IPAC
	.comm	_IPAC_POTA2,4,2                 ## @IPAC_POTA2
	.comm	_IPAC_MASK,4,2                  ## @IPAC_MASK
	.comm	_IPAC_ACFG,4,2                  ## @IPAC_ACFG
	.comm	_IPAC_AOE,4,2                   ## @IPAC_AOE
	.comm	_IPAC_PCFG,4,2                  ## @IPAC_PCFG
	.comm	_IPAC_ATX,4,2                   ## @IPAC_ATX
	.no_dead_strip	_reset_elsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_elsa
_reset_elsa:                            ; @reset_elsa
	.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
	ldr	x0, [x0, #40]
	cbz	x0, LBB0_9
; %bb.1:
	mov	w1, #0
	bl	_byteout
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TimerRun
	cbnz	x0, LBB0_2
; %bb.3:
	ldr	w8, [x19, #8]
	mov	w9, #80
	orr	w8, w8, w9
Lloh0:
	adrp	x20, _ELSA_ISDN_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ELSA_ISDN_RESET@GOTPAGEOFF]
	ldr	w9, [x20]
	bic	w1, w8, w9
	str	w1, [x19, #8]
	ldr	x0, [x19, #48]
	bl	_byteout
	ldr	x0, [x19, #40]
	mov	w1, #0
	bl	_byteout
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TimerRun
	cbnz	x0, LBB0_4
; %bb.5:
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	orr	w1, w9, w8
	str	w1, [x19, #8]
	ldr	x0, [x19, #48]
	bl	_byteout
	ldr	x0, [x19, #40]
	mov	w1, #0
	bl	_byteout
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TimerRun
	cbnz	x0, LBB0_6
; %bb.7:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.8:
	mov	w1, #255
	bl	_byteout
LBB0_9:
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _ELSA_QS1000PCI@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ELSA_QS1000PCI@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh4:
	adrp	x20, _ELSA_QS3000PCI@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ELSA_QS3000PCI@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh6:
	adrp	x22, _ELSA_PCMCIA_IPAC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ELSA_PCMCIA_IPAC@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_18
; %bb.10:
	ldp	w1, w0, [x19, #24]
Lloh8:
	adrp	x23, _IPAC_POTA2@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IPAC_POTA2@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #32
	bl	_writereg
	mov	w0, #10
	bl	_mdelay
	ldp	w1, w0, [x19, #24]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_writereg
	ldp	w1, w0, [x19, #24]
Lloh10:
	adrp	x8, _IPAC_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPAC_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w3, #192
	bl	_writereg
	mov	w0, #10
	bl	_mdelay
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldp	w1, w0, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _IPAC_PCFG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPAC_PCFG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w3, #16
	bl	_writereg
	ldp	w1, w0, [x19, #24]
Lloh16:
	adrp	x8, _IPAC_ACFG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPAC_ACFG@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w3, #4
	bl	_writereg
	mov	w3, #248
	b	LBB0_13
LBB0_12:
Lloh19:
	adrp	x8, _IPAC_ACFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IPAC_ACFG@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_writereg
	mov	w3, #60
LBB0_13:
	ldp	w1, w0, [x19, #24]
Lloh22:
	adrp	x8, _IPAC_AOE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IPAC_AOE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_writereg
	ldp	w1, w0, [x19, #24]
Lloh25:
	adrp	x8, _IPAC_ATX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IPAC_ATX@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	w3, #255
	bl	_writereg
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	w1, #65
	b	LBB0_17
LBB0_15:
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:
	mov	w1, #67
LBB0_17:
	ldr	x8, [x19, #16]
	add	x0, x8, #76
	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	_byteout
LBB0_18:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ELSA_ISDN_RESET,4,2            ; @ELSA_ISDN_RESET
	.comm	_ELSA_QS1000PCI,8,3             ; @ELSA_QS1000PCI
	.comm	_ELSA_QS3000PCI,8,3             ; @ELSA_QS3000PCI
	.comm	_ELSA_PCMCIA_IPAC,8,3           ; @ELSA_PCMCIA_IPAC
	.comm	_IPAC_POTA2,4,2                 ; @IPAC_POTA2
	.comm	_IPAC_MASK,4,2                  ; @IPAC_MASK
	.comm	_IPAC_ACFG,4,2                  ; @IPAC_ACFG
	.comm	_IPAC_AOE,4,2                   ; @IPAC_AOE
	.comm	_IPAC_PCFG,4,2                  ; @IPAC_PCFG
	.comm	_IPAC_ATX,4,2                   ; @IPAC_ATX
	.no_dead_strip	_reset_elsa
.subsections_via_symbols
