	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t1_clock
_t1_clock:                              ## @t1_clock
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_t1_is_T1B
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	xorl	%r12d, %r12d
	testb	$2, %bl
	jne	LBB0_7
## %bb.4:
	movl	(%r14), %eax
	andl	$1, %eax
	andl	$1, %ebx
	cmpl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_6:
	movq	_HCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	movq	_LCLOCK@GOTPCREL(%rip), %rdx
	cmovnel	(%rdx), %eax
	movl	$20, %edx
	movl	$14, %r13d
	cmovel	%edx, %r13d
	sete	%cl
	leal	16(,%rcx,8), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, (%r14)
	leaq	4(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	orb	$2, -42(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	movl	-44(%rbp), %edx
	andl	$-73, %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_bit_bang
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_bit_bang
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$9, %edx
	callq	_bit_bang
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	orb	$64, -44(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	andb	$-65, -44(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	orb	$2, -42(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	andb	$-41, -44(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_bit_bang
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_bit_bang
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$9, %edx
	callq	_bit_bang
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	orb	$32, -44(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___t1_tpi_read
	andb	$-33, -44(%rbp)
	movl	$50, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	___t1_tpi_write
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_HCLOCK,4,2                     ## @HCLOCK
	.comm	_LCLOCK,4,2                     ## @LCLOCK
	.comm	_A_ELMER0_GPO,4,2               ## @A_ELMER0_GPO
	.no_dead_strip	_t1_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t1_clock
_t1_clock:                              ; @t1_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_t1_is_T1B
	cbz	w0, LBB0_4
; %bb.1:
	tbnz	w20, #1, LBB0_7
; %bb.2:
	ldr	w8, [x19]
	and	w9, w8, #0x1
	and	w8, w20, #0x1
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EALREADY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x9, _HCLOCK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HCLOCK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _LCLOCK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _LCLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w9, w10, eq
	mov	w9, #14
	mov	w10, #20
	csel	w22, w10, w9, eq
	mov	w9, #16
	mov	w10, #24
	csel	w21, w10, w9, eq
	mov	x20, x19
	str	w8, [x20], #4
	mov	x0, x20
	bl	_spin_lock
Lloh10:
	adrp	x23, _A_ELMER0_GPO@GOTPAGE
Lloh11:
	ldr	x23, [x23, _A_ELMER0_GPO@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x20000
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	mov	w9, #-73
	and	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_bit_bang
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_bit_bang
	mov	x0, x19
	mov	x1, x22
	mov	w2, #9
	bl	_bit_bang
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x40
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffffffbf
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x20000
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	mov	w9, #-41
	and	w8, w8, w9
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_bit_bang
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_bit_bang
	mov	x0, x19
	mov	x1, x21
	mov	w2, #9
	bl	_bit_bang
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x20
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffffffdf
	str	w8, [sp, #12]
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	___t1_tpi_write
	mov	x0, x20
	bl	_spin_unlock
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_HCLOCK,4,2                     ; @HCLOCK
	.comm	_LCLOCK,4,2                     ; @LCLOCK
	.comm	_A_ELMER0_GPO,4,2               ; @A_ELMER0_GPO
	.no_dead_strip	_t1_clock
.subsections_via_symbols
