	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dps310_set_pres_precision
_dps310_set_pres_precision:             ## @dps310_set_pres_precision
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$129, %esi
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%ecx, %ecx
	cmpl	$16, %esi
	movq	_DPS310_PRS_SHIFT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovael	%edx, %ecx
	movl	(%rdi), %edi
	movq	_DPS310_CFG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write_bits
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %r14d
	movq	_DPS310_PRS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DPS310_PRS_PRC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_ilog2
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DPS310_PRS_SHIFT_EN,4,2        ## @DPS310_PRS_SHIFT_EN
	.comm	_DPS310_CFG_REG,4,2             ## @DPS310_CFG_REG
	.comm	_DPS310_PRS_CFG,4,2             ## @DPS310_PRS_CFG
	.comm	_DPS310_PRS_PRC_BITS,4,2        ## @DPS310_PRS_PRC_BITS
	.no_dead_strip	_dps310_set_pres_precision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dps310_set_pres_precision
_dps310_set_pres_precision:             ; @dps310_set_pres_precision
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w1, #129
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _DPS310_PRS_SHIFT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPS310_PRS_SHIFT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cmp	w1, #15
	csel	w3, w2, wzr, hi
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _DPS310_CFG_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPS310_CFG_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_regmap_write_bits
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w20, [x20]
Lloh9:
	adrp	x8, _DPS310_PRS_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPS310_PRS_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _DPS310_PRS_PRC_BITS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DPS310_PRS_PRC_BITS@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_ilog2
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DPS310_PRS_SHIFT_EN,4,2        ; @DPS310_PRS_SHIFT_EN
	.comm	_DPS310_CFG_REG,4,2             ; @DPS310_CFG_REG
	.comm	_DPS310_PRS_CFG,4,2             ; @DPS310_PRS_CFG
	.comm	_DPS310_PRS_PRC_BITS,4,2        ; @DPS310_PRS_PRC_BITS
	.no_dead_strip	_dps310_set_pres_precision
.subsections_via_symbols
