	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_gpio_of_xlate
_pm8xxx_gpio_of_xlate:                  ## @pm8xxx_gpio_of_xlate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, (%rdi)
	jge	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	(%rsi), %rax
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	4(%rax), %ecx
	movl	%ecx, (%rdx)
LBB0_4:
	movl	(%rax), %eax
	movq	_PM8XXX_GPIO_PHYSICAL_OFFSET@GOTPCREL(%rip), %rcx
LBB0_5:
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PM8XXX_GPIO_PHYSICAL_OFFSET,4,2 ## @PM8XXX_GPIO_PHYSICAL_OFFSET
	.no_dead_strip	_pm8xxx_gpio_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_gpio_of_xlate
_pm8xxx_gpio_of_xlate:                  ; @pm8xxx_gpio_of_xlate
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x1]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w9, [x8, #4]
	str	w9, [x2]
LBB0_4:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _PM8XXX_GPIO_PHYSICAL_OFFSET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PM8XXX_GPIO_PHYSICAL_OFFSET@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	sub	w0, w8, w9
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PM8XXX_GPIO_PHYSICAL_OFFSET,4,2 ; @PM8XXX_GPIO_PHYSICAL_OFFSET
	.no_dead_strip	_pm8xxx_gpio_of_xlate
.subsections_via_symbols
