	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_tone
_set_tone:                              ## @set_tone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	setne	%al
	shll	$6, %eax
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_4
## %bb.2:
	movq	_RSTV0910_P1_DISTXCFG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, %esi
	movl	$56, %edx
	popq	%rbp
	jmp	_write_reg                      ## TAILCALL
LBB0_3:
	movq	_RSTV0910_P1_DISTXCFG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, %esi
	movl	$58, %edx
	popq	%rbp
	jmp	_write_reg                      ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSTV0910_P1_DISTXCFG,4,2       ## @RSTV0910_P1_DISTXCFG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_tone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tone
_set_tone:                              ; @set_tone
	.cfi_startproc
; %bb.0:
	ldr	x0, [x0]
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w8, ne
	lsl	w8, w8, #6
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _RSTV0910_P1_DISTXCFG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RSTV0910_P1_DISTXCFG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	w2, #56
	b	_write_reg
LBB0_3:
Lloh3:
	adrp	x9, _RSTV0910_P1_DISTXCFG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RSTV0910_P1_DISTXCFG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	w2, #58
	b	_write_reg
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RSTV0910_P1_DISTXCFG,4,2       ; @RSTV0910_P1_DISTXCFG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_tone
.subsections_via_symbols
