	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmic_mpp_get
_pmic_mpp_get:                          ## @pmic_mpp_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	movq	(%rcx,%rdx,8), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	_PMIC_MPP_REG_RT_STS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_pmic_mpp_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	_PMIC_MPP_REG_RT_STS_VAL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_4
LBB0_1:
	movl	(%rbx), %ecx
LBB0_4:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMIC_MPP_REG_RT_STS,4,2        ## @PMIC_MPP_REG_RT_STS
	.comm	_PMIC_MPP_REG_RT_STS_VAL_MASK,4,2 ## @PMIC_MPP_REG_RT_STS_VAL_MASK
	.no_dead_strip	_pmic_mpp_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmic_mpp_get
_pmic_mpp_get:                          ; @pmic_mpp_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_gpiochip_get_data
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x19, [x8, w19, uxtw #3]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PMIC_MPP_REG_RT_STS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMIC_MPP_REG_RT_STS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_pmic_mpp_read
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PMIC_MPP_REG_RT_STS_VAL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMIC_MPP_REG_RT_STS_VAL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19]
LBB0_4:
	cmp	w8, #0
	cset	w0, ne
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PMIC_MPP_REG_RT_STS,4,2        ; @PMIC_MPP_REG_RT_STS
	.comm	_PMIC_MPP_REG_RT_STS_VAL_MASK,4,2 ; @PMIC_MPP_REG_RT_STS_VAL_MASK
	.no_dead_strip	_pmic_mpp_get
.subsections_via_symbols
