	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8842_reset
_ks8842_reset:                          ## @ks8842_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MICREL_KS884X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_REG_GRR@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$1, %edx
	callq	_ks8842_write16
	movl	$10, %edi
	callq	_msleep
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iowrite16                      ## TAILCALL
LBB0_2:
	movq	_REG_TIMB_RST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$1, %edi
	callq	_iowrite32
	movl	$20, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MICREL_KS884X,4,2              ## @MICREL_KS884X
	.comm	_REG_GRR,8,3                    ## @REG_GRR
	.comm	_REG_TIMB_RST,8,3               ## @REG_TIMB_RST
	.no_dead_strip	_ks8842_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8842_reset
_ks8842_reset:                          ; @ks8842_reset
	.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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MICREL_KS884X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MICREL_KS884X@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _REG_GRR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _REG_GRR@GOTPAGEOFF]
	ldr	x3, [x20]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #1
	bl	_ks8842_write16
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iowrite16
LBB0_2:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _REG_TIMB_RST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REG_TIMB_RST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_iowrite32
	mov	w0, #20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MICREL_KS884X,4,2              ; @MICREL_KS884X
	.comm	_REG_GRR,8,3                    ; @REG_GRR
	.comm	_REG_TIMB_RST,8,3               ; @REG_TIMB_RST
	.no_dead_strip	_ks8842_reset
.subsections_via_symbols
