	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_pinctrl_setup_pm_reset
_msm_pinctrl_setup_pm_reset:            ## @msm_pinctrl_setup_pm_reset
	.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
	movq	16(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rax), %r12
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	16(%r15), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_7
LBB0_4:
	movq	_msm_ps_hold_restart@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%r15), %rdi
	movl	%eax, 8(%r15)
	movl	$128, 4(%r15)
	callq	_register_restart_handler
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movq	_poweroff_pctrl@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_msm_ps_hold_poweroff@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pm_power_off@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ps_hold"

	.comm	_msm_ps_hold_restart,4,2        ## @msm_ps_hold_restart
L_.str.1:                               ## @.str.1
	.asciz	"failed to setup restart handler.\n"

	.comm	_poweroff_pctrl,8,3             ## @poweroff_pctrl
	.comm	_msm_ps_hold_poweroff,4,2       ## @msm_ps_hold_poweroff
	.comm	_pm_power_off,4,2               ## @pm_power_off
	.no_dead_strip	_msm_pinctrl_setup_pm_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_pinctrl_setup_pm_reset
_msm_pinctrl_setup_pm_reset:            ; @msm_pinctrl_setup_pm_reset
	.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
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	ldr	x22, [x8, #8]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, x21, lsl #2]
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x8, [x19, #16]
	ldrsw	x8, [x8]
	cmp	x21, x8
	b.lt	LBB0_2
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _msm_ps_hold_restart@GOTPAGE
Lloh3:
	ldr	x8, [x8, _msm_ps_hold_restart@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #128
	mov	x0, x19
	stp	w9, w8, [x0, #4]!
	bl	_register_restart_handler
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_6:
Lloh7:
	adrp	x8, _poweroff_pctrl@GOTPAGE
Lloh8:
	ldr	x8, [x8, _poweroff_pctrl@GOTPAGEOFF]
Lloh9:
	str	x19, [x8]
Lloh10:
	adrp	x8, _msm_ps_hold_poweroff@GOTPAGE
Lloh11:
	ldr	x8, [x8, _msm_ps_hold_poweroff@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _pm_power_off@GOTPAGE
Lloh14:
	ldr	x9, [x9, _pm_power_off@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ps_hold"

	.comm	_msm_ps_hold_restart,4,2        ; @msm_ps_hold_restart
l_.str.1:                               ; @.str.1
	.asciz	"failed to setup restart handler.\n"

	.comm	_poweroff_pctrl,8,3             ; @poweroff_pctrl
	.comm	_msm_ps_hold_poweroff,4,2       ; @msm_ps_hold_poweroff
	.comm	_pm_power_off,4,2               ; @pm_power_off
	.no_dead_strip	_msm_pinctrl_setup_pm_reset
.subsections_via_symbols
