	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_set_voltage
_dst_set_voltage:                       ## @dst_set_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rdi
	movl	%esi, (%rdi)
	movq	8(%rdi), %rax
	movq	_DST_TYPE_IS_SAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	leal	-129(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_4
## %bb.7:
	movl	16(%rdi), %ecx
	movq	_HAS_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	xorl	%eax, %eax
	movl	%esi, 16(%rdi)
	movq	24(%rdi), %rsi
	movl	$1, 16(%rsi)
	testl	%ecx, %edx
	je	LBB0_6
## %bb.8:
	popq	%rbp
	retq
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	cmpl	$128, %esi
	jne	LBB0_9
## %bb.5:
	movq	_HAS_POWER@GOTPCREL(%rip), %rax
	movq	_HAS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ATTEMPT_TUNE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 16(%rdi)
	movq	24(%rdi), %rax
	movl	$0, 16(%rax)
LBB0_6:
	popq	%rbp
	jmp	_dst_tone_power_cmd             ## TAILCALL
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DST_TYPE_IS_SAT,8,3            ## @DST_TYPE_IS_SAT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HAS_POWER,4,2                  ## @HAS_POWER
	.comm	_HAS_LOCK,4,2                   ## @HAS_LOCK
	.comm	_ATTEMPT_TUNE,4,2               ## @ATTEMPT_TUNE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dst_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_set_voltage
_dst_set_voltage:                       ; @dst_set_voltage
	.cfi_startproc
; %bb.0:
	ldr	x0, [x0]
	str	w1, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _DST_TYPE_IS_SAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DST_TYPE_IS_SAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	sub	w8, w1, #129
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.2:
	ldr	w8, [x0, #16]
Lloh3:
	adrp	x9, _HAS_POWER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HAS_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w10, w9, w8
	str	w10, [x0, #16]
	ldr	x10, [x0, #24]
	mov	w11, #1
	str	w11, [x10, #16]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	cmp	w1, #128
	b.ne	LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _HAS_POWER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HAS_POWER@GOTPAGEOFF]
Lloh10:
	adrp	x9, _HAS_LOCK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HAS_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _ATTEMPT_TUNE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATTEMPT_TUNE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x0, #16]
	bic	w8, w9, w8
	str	w8, [x0, #16]
	ldr	x8, [x0, #24]
	str	wzr, [x8, #16]
LBB0_7:
	b	_dst_tone_power_cmd
LBB0_8:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DST_TYPE_IS_SAT,8,3            ; @DST_TYPE_IS_SAT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HAS_POWER,4,2                  ; @HAS_POWER
	.comm	_HAS_LOCK,4,2                   ; @HAS_LOCK
	.comm	_ATTEMPT_TUNE,4,2               ; @ATTEMPT_TUNE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dst_set_voltage
.subsections_via_symbols
