	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2063_setreg
_mt2063_setreg:                         ## @mt2063_setreg
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movq	_MT2063_REG_END_REGS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_1
## %bb.2:
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_mt2063_write
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	-24(%rbp), %rax
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MT2063_REG_END_REGS,8,3        ## @MT2063_REG_END_REGS
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_mt2063_setreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2063_setreg
_mt2063_setreg:                         ; @mt2063_setreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	str	x2, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
Lloh2:
	adrp	x8, _MT2063_REG_END_REGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT2063_REG_END_REGS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_3
; %bb.1:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_mt2063_write
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	str	x8, [x9, x19, lsl #3]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ERANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MT2063_REG_END_REGS,8,3        ; @MT2063_REG_END_REGS
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_mt2063_setreg
.subsections_via_symbols
