	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65218_voltage_set_uv_hyst
_tps65218_voltage_set_uv_hyst:          ## @tps65218_voltage_set_uv_hyst
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_of_property_read_u32
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	-20(%rbp), %eax
	cmpl	$200000, %eax                   ## imm = 0x30D40
	je	LBB0_4
## %bb.2:
	cmpl	$400000, %eax                   ## imm = 0x61A80
	jne	LBB0_3
LBB0_4:
	movq	_TPS65218_REG_CONFIG2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TPS65218_CONFIG2_UVLOHYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	cmpl	$400000, %eax                   ## imm = 0x61A80
	movl	$0, %ecx
	cmovel	%edx, %ecx
	movq	_TPS65218_PROTECT_L1@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_tps65218_update_bits
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,under-voltage-hyst-microvolt"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid ti,under-voltage-hyst-microvolt value\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TPS65218_REG_CONFIG2,4,2       ## @TPS65218_REG_CONFIG2
	.comm	_TPS65218_CONFIG2_UVLOHYS,4,2   ## @TPS65218_CONFIG2_UVLOHYS
	.comm	_TPS65218_PROTECT_L1,4,2        ## @TPS65218_PROTECT_L1
	.no_dead_strip	_tps65218_voltage_set_uv_hyst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65218_voltage_set_uv_hyst
_tps65218_voltage_set_uv_hyst:          ; @tps65218_voltage_set_uv_hyst
	.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, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #3392
	movk	w9, #3, lsl #16
	cmp	w8, w9
	mov	w9, #6784
	movk	w9, #6, lsl #16
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x10, _TPS65218_REG_CONFIG2@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TPS65218_REG_CONFIG2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x10]
Lloh5:
	adrp	x10, _TPS65218_CONFIG2_UVLOHYS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TPS65218_CONFIG2_UVLOHYS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x10]
	cmp	w8, w9
	csel	w3, w2, wzr, eq
Lloh8:
	adrp	x8, _TPS65218_PROTECT_L1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TPS65218_PROTECT_L1@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_tps65218_update_bits
LBB0_3:
	mov	w0, #0
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
LBB0_5:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,under-voltage-hyst-microvolt"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid ti,under-voltage-hyst-microvolt value\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TPS65218_REG_CONFIG2,4,2       ; @TPS65218_REG_CONFIG2
	.comm	_TPS65218_CONFIG2_UVLOHYS,4,2   ; @TPS65218_CONFIG2_UVLOHYS
	.comm	_TPS65218_PROTECT_L1,4,2        ; @TPS65218_PROTECT_L1
	.no_dead_strip	_tps65218_voltage_set_uv_hyst
.subsections_via_symbols
