	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sc_check_reset                 ## -- Begin function sc_check_reset
	.p2align	4, 0x90
_sc_check_reset:                        ## @sc_check_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_sc_adapter@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%r14d, %rbx
	movq	(%rax,%rbx,8), %rax
	movl	20(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	%ebx, %edi
	callq	_setup_ports
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	40(%rax), %rcx
	movq	(%rax), %rdx
	movl	(%rcx,%rdx,4), %edi
	movl	8(%rax), %esi
	sarl	$14, %esi
	orl	$128, %esi
	callq	_outb
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	32(%rax), %rcx
	movq	_SIG_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx), %rcx
	movq	_SIGNATURE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_flushreadfifo
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$12, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_startproc                      ## TAILCALL
LBB0_3:
	movl	20(%rax), %esi
	movq	_CHECKRESET_TIME@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$16, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%r14), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: check_timer timer called\n"

	.comm	_sc_adapter,8,3                 ## @sc_adapter
	.comm	_SIG_OFFSET,8,3                 ## @SIG_OFFSET
	.comm	_SIGNATURE,8,3                  ## @SIGNATURE
L_.str.1:                               ## @.str.1
	.asciz	"%s: No signature yet, waiting another %lu jiffies.\n"

	.comm	_CHECKRESET_TIME,8,3            ## @CHECKRESET_TIME
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sc_check_reset                 ; -- Begin function sc_check_reset
	.p2align	2
_sc_check_reset:                        ; @sc_check_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _sc_adapter@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sc_adapter@GOTPAGEOFF]
	ldr	x8, [x20]
	sxtw	x21, w0
	sbfiz	x22, x0, #3, #32
	ldr	x8, [x8, x22]
	ldr	w1, [x8, #20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_setup_ports
	ldr	x8, [x20]
	ldr	x8, [x8, x22]
	add	x0, x8, #12
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldr	x8, [x8, x22]
	ldr	x9, [x8, #40]
	ldr	x10, [x8]
	ldr	w0, [x9, x10, lsl #2]
	ldr	w8, [x8, #8]
	asr	w8, w8, #14
	orr	w1, w8, #0x80
	bl	_outb
	ldr	x8, [x20]
	ldr	x8, [x8, x22]
	ldr	x9, [x8, #32]
Lloh4:
	adrp	x10, _SIG_OFFSET@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SIG_OFFSET@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	ldr	x9, [x10, x9]
Lloh7:
	adrp	x10, _SIGNATURE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SIGNATURE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_flushreadfifo
	ldr	x8, [x20]
	lsl	x21, x21, #3
	ldr	x8, [x8, x21]
	add	x0, x8, #12
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20]
	ldr	x8, [x8, x21]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_startproc
LBB0_3:
	ldr	w1, [x8, #20]
Lloh10:
	adrp	x19, _CHECKRESET_TIME@GOTPAGE
Lloh11:
	ldr	x19, [x19, _CHECKRESET_TIME@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x20]
	lsl	x21, x21, #3
	ldr	x8, [x8, x21]
	add	x0, x8, #16
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x1, x9, x8
	bl	_mod_timer
	ldr	x8, [x20]
	ldr	x8, [x8, x21]
	add	x0, x8, #12
	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
	add	sp, sp, #64
	b	_spin_unlock_irqrestore
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: check_timer timer called\n"

	.comm	_sc_adapter,8,3                 ; @sc_adapter
	.comm	_SIG_OFFSET,8,3                 ; @SIG_OFFSET
	.comm	_SIGNATURE,8,3                  ; @SIGNATURE
l_.str.1:                               ; @.str.1
	.asciz	"%s: No signature yet, waiting another %lu jiffies.\n"

	.comm	_CHECKRESET_TIME,8,3            ; @CHECKRESET_TIME
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
