	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc1200_clock
_sc1200_clock:                          ## @sc1200_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$36924, %edi                    ## imm = 0x903C
	callq	_inb
	movl	%eax, %ebx
	movl	$36925, %edi                    ## imm = 0x903D
	callq	_inb
	cmpl	$4, %ebx
	jne	LBB0_2
## %bb.1:
	movl	%eax, %ecx
	xorl	%eax, %eax
	movq	_SC1200_REV_B1@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_3
LBB0_2:
	movl	$36894, %edi                    ## imm = 0x901E
	callq	_inw
	movl	%eax, %ecx
	shrl	$8, %ecx
	andl	$3, %ecx
	xorl	%eax, %eax
	cmpl	$3, %ecx
	cmovnel	%ecx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC1200_REV_B1,4,2              ## @SC1200_REV_B1
	.no_dead_strip	_sc1200_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc1200_clock
_sc1200_clock:                          ; @sc1200_clock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #36924
	bl	_inb
	mov	x19, x0
	mov	w0, #36925
	bl	_inb
Lloh0:
	adrp	x8, _SC1200_REV_B1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC1200_REV_B1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, #4
	ccmp	w0, w8, #0, eq
	b.lt	LBB0_2
; %bb.1:
	mov	w0, #36894
	bl	_inw
	ubfx	w8, w0, #8, #2
	cmp	w8, #3
	csel	w0, wzr, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SC1200_REV_B1,4,2              ; @SC1200_REV_B1
	.no_dead_strip	_sc1200_clock
.subsections_via_symbols
