	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_pwron_params_ofinit
_palmas_pwron_params_ofinit:            ## @palmas_pwron_params_ofinit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.palmas_pwron_params_ofinit.lpk_times(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	L___const.palmas_pwron_params_ofinit.pwr_on_deb_ms(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	movl	%eax, (%r15)
	movq	(%r14), %r13
	testq	%r13, %r13
	je	LBB0_14
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-84(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	leaq	-84(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_8
LBB0_13:
	movslq	(%r15), %rax
	movl	-64(%rbp,%rax,4), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-84(%rbp), %eax
	cmpl	-64(%rbp,%rbx,4), %eax
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_8:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-84(%rbp), %eax
	cmpl	-80(%rbp,%rbx,4), %eax
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_13
LBB0_5:
	movl	%ebx, (%r15)
	jmp	LBB0_7
LBB0_11:
	movl	%ebx, 4(%r15)
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.palmas_pwron_params_ofinit.lpk_times
L___const.palmas_pwron_params_ofinit.lpk_times:
	.long	6                               ## 0x6
	.long	8                               ## 0x8
	.long	10                              ## 0xa
	.long	12                              ## 0xc

	.p2align	4                               ## @__const.palmas_pwron_params_ofinit.pwr_on_deb_ms
L___const.palmas_pwron_params_ofinit.pwr_on_deb_ms:
	.long	15                              ## 0xf
	.long	100                             ## 0x64
	.long	500                             ## 0x1f4
	.long	1000                            ## 0x3e8

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,palmas-long-press-seconds"

L_.str.1:                               ## @.str.1
	.asciz	"ti,palmas-pwron-debounce-milli-seconds"

L_.str.2:                               ## @.str.2
	.asciz	"h/w controlled shutdown duration=%d seconds\n"

	.no_dead_strip	_palmas_pwron_params_ofinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_pwron_params_ofinit
_palmas_pwron_params_ofinit:            ; @palmas_pwron_params_ofinit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, l___const.palmas_pwron_params_ofinit.lpk_times@PAGE
Lloh4:
	add	x8, x8, l___const.palmas_pwron_params_ofinit.lpk_times@PAGEOFF
Lloh5:
	ldr	q1, [x8]
Lloh6:
	adrp	x8, l___const.palmas_pwron_params_ofinit.pwr_on_deb_ms@PAGE
Lloh7:
	add	x8, x8, l___const.palmas_pwron_params_ofinit.pwr_on_deb_ms@PAGEOFF
Lloh8:
	ldr	q0, [x8]
	stp	q0, q1, [sp, #16]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	str	w8, [x20]
	ldr	x21, [x19]
	cbz	x21, LBB0_4
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_6
LBB0_2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_10
LBB0_3:
	ldrsw	x8, [x20]
	add	x9, sp, #32
	ldr	w2, [x9, x8, lsl #2]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_4:
	ldr	x8, [sp, #56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	add	x22, sp, #32
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.7:
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x22, x23, lsl #2]
	cmp	w8, w9
	b.le	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x0, sp, #32
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_8
	b	LBB0_2
LBB0_10:
	add	x21, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.11:
	mov	x22, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21, x22, lsl #2]
	cmp	w8, w9
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_12
	b	LBB0_3
LBB0_14:
	str	w23, [x20]
	b	LBB0_2
LBB0_15:
	str	w22, [x20, #4]
	b	LBB0_3
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.palmas_pwron_params_ofinit.lpk_times
l___const.palmas_pwron_params_ofinit.lpk_times:
	.long	6                               ; 0x6
	.long	8                               ; 0x8
	.long	10                              ; 0xa
	.long	12                              ; 0xc

	.p2align	2                               ; @__const.palmas_pwron_params_ofinit.pwr_on_deb_ms
l___const.palmas_pwron_params_ofinit.pwr_on_deb_ms:
	.long	15                              ; 0xf
	.long	100                             ; 0x64
	.long	500                             ; 0x1f4
	.long	1000                            ; 0x3e8

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,palmas-long-press-seconds"

l_.str.1:                               ; @.str.1
	.asciz	"ti,palmas-pwron-debounce-milli-seconds"

l_.str.2:                               ; @.str.2
	.asciz	"h/w controlled shutdown duration=%d seconds\n"

	.no_dead_strip	_palmas_pwron_params_ofinit
.subsections_via_symbols
