	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_dt_to_pdata
_palmas_dt_to_pdata:                    ## @palmas_dt_to_pdata
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$1, (%r14)
	movq	-32(%rbp), %rax
	movq	%rax, 24(%r14)
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r14)
	movq	-32(%rbp), %rax
	movq	%rax, 16(%r14)
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_PALMAS_POWER_CTRL_NSLEEP_MASK@GOTPCREL(%rip), %rcx
	movq	_PALMAS_POWER_CTRL_ENABLE1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_PALMAS_POWER_CTRL_ENABLE2_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	-32(%rbp), %eax
LBB0_7:
	movl	%eax, 4(%r14)
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_palmas_set_pdata_irq_flag
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,mux-pad1"

L_.str.1:                               ## @.str.1
	.asciz	"ti,mux-pad2"

L_.str.2:                               ## @.str.2
	.asciz	"ti,power-ctrl"

	.comm	_PALMAS_POWER_CTRL_NSLEEP_MASK,4,2 ## @PALMAS_POWER_CTRL_NSLEEP_MASK
	.comm	_PALMAS_POWER_CTRL_ENABLE1_MASK,4,2 ## @PALMAS_POWER_CTRL_ENABLE1_MASK
	.comm	_PALMAS_POWER_CTRL_ENABLE2_MASK,4,2 ## @PALMAS_POWER_CTRL_ENABLE2_MASK
L_.str.3:                               ## @.str.3
	.asciz	"ti,system-power-controller"

	.no_dead_strip	_palmas_dt_to_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_dt_to_pdata
_palmas_dt_to_pdata:                    ; @palmas_dt_to_pdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [sp, #8]
	str	x8, [x19, #24]
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
LBB0_4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _PALMAS_POWER_CTRL_NSLEEP_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PALMAS_POWER_CTRL_NSLEEP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PALMAS_POWER_CTRL_ENABLE1_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PALMAS_POWER_CTRL_ENABLE1_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _PALMAS_POWER_CTRL_ENABLE2_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PALMAS_POWER_CTRL_ENABLE2_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_7
LBB0_6:
	ldr	w8, [sp, #8]
LBB0_7:
	str	w8, [x19, #4]
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	bl	_palmas_set_pdata_irq_flag
LBB0_9:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,mux-pad1"

l_.str.1:                               ; @.str.1
	.asciz	"ti,mux-pad2"

l_.str.2:                               ; @.str.2
	.asciz	"ti,power-ctrl"

	.comm	_PALMAS_POWER_CTRL_NSLEEP_MASK,4,2 ; @PALMAS_POWER_CTRL_NSLEEP_MASK
	.comm	_PALMAS_POWER_CTRL_ENABLE1_MASK,4,2 ; @PALMAS_POWER_CTRL_ENABLE1_MASK
	.comm	_PALMAS_POWER_CTRL_ENABLE2_MASK,4,2 ; @PALMAS_POWER_CTRL_ENABLE2_MASK
l_.str.3:                               ; @.str.3
	.asciz	"ti,system-power-controller"

	.no_dead_strip	_palmas_dt_to_pdata
.subsections_via_symbols
