	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_pin_config_get
_pm8xxx_pin_config_get:                 ## @pm8xxx_pin_config_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$10, %ecx
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_12:
	addq	$16, %rbx
	jmp	LBB0_17
LBB0_11:
	addq	$12, %rbx
	jmp	LBB0_17
LBB0_9:
	movq	_PM8XXX_GPIO_MODE_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_10
## %bb.16:
	addq	$8, %rbx
LBB0_17:
	movl	(%rbx), %esi
	jmp	LBB0_18
LBB0_8:
	movl	4(%rbx), %ecx
	movq	_PM8XXX_GPIO_MODE_INPUT@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_13:
	cmpl	$0, 20(%rbx)
	jne	LBB0_4
## %bb.14:
	movl	$1, %esi
	jmp	LBB0_18
LBB0_15:
	movl	$1, %esi
	cmpl	$0, 20(%rbx)
	jne	LBB0_18
	jmp	LBB0_4
LBB0_6:
	movl	28(%rbx), %ecx
	movq	_PM8XXX_GPIO_BIAS_PU_1P5_30@GOTPCREL(%rip), %rdx
	movl	$1, %esi
	cmpl	(%rdx), %ecx
	jg	LBB0_4
	jmp	LBB0_18
LBB0_5:
	movl	28(%rbx), %ecx
	movq	_PM8XXX_GPIO_BIAS_PD@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_7:
	movl	$1, %esi
	cmpl	$0, 24(%rbx)
	jne	LBB0_18
	jmp	LBB0_4
LBB0_2:
	movl	28(%rbx), %ecx
	movq	_PM8XXX_GPIO_BIAS_NP@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	$1, %esi
	cmpl	(%rdx), %ecx
	je	LBB0_18
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_10:
	xorl	%esi, %esi
LBB0_18:
	movl	%eax, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_PM8XXX_GPIO_BIAS_NP,4,2        ## @PM8XXX_GPIO_BIAS_NP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PM8XXX_GPIO_BIAS_PD,4,2        ## @PM8XXX_GPIO_BIAS_PD
	.comm	_PM8XXX_GPIO_BIAS_PU_1P5_30,4,2 ## @PM8XXX_GPIO_BIAS_PU_1P5_30
	.comm	_PM8XXX_GPIO_MODE_INPUT,4,2     ## @PM8XXX_GPIO_MODE_INPUT
	.comm	_PM8XXX_GPIO_MODE_OUTPUT,4,2    ## @PM8XXX_GPIO_MODE_OUTPUT
	.no_dead_strip	_pm8xxx_pin_config_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_pin_config_get
_pm8xxx_pin_config_get:                 ; @pm8xxx_pin_config_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, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0]
	ldr	x20, [x8, w20, uxtw #3]
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	sub	w8, w0, #128
	cmp	w8, #10
	b.hi	LBB0_9
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x20, x20, #16
	b	LBB0_6
LBB0_3:
	add	x20, x20, #12
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20, #4]
Lloh2:
	adrp	x9, _PM8XXX_GPIO_MODE_OUTPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PM8XXX_GPIO_MODE_OUTPUT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.5:
	add	x20, x20, #8
LBB0_6:
	ldr	w1, [x20]
	b	LBB0_17
LBB0_7:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _PM8XXX_GPIO_MODE_INPUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PM8XXX_GPIO_MODE_INPUT@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_16
LBB0_9:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_10:
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_16
	b	LBB0_9
LBB0_11:
	ldr	w8, [x20, #28]
Lloh10:
	adrp	x9, _PM8XXX_GPIO_BIAS_PU_1P5_30@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PM8XXX_GPIO_BIAS_PU_1P5_30@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_9
	b	LBB0_16
LBB0_12:
	ldr	w8, [x20, #28]
Lloh13:
	adrp	x9, _PM8XXX_GPIO_BIAS_PD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PM8XXX_GPIO_BIAS_PD@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_16
	b	LBB0_9
LBB0_14:
	ldr	w8, [x20, #28]
Lloh15:
	adrp	x9, _PM8XXX_GPIO_BIAS_NP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PM8XXX_GPIO_BIAS_NP@GOTPAGEOFF]
LBB0_15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_16:
	mov	w1, #1
LBB0_17:
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	w1, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_PM8XXX_GPIO_BIAS_NP,4,2        ; @PM8XXX_GPIO_BIAS_NP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PM8XXX_GPIO_BIAS_PD,4,2        ; @PM8XXX_GPIO_BIAS_PD
	.comm	_PM8XXX_GPIO_BIAS_PU_1P5_30,4,2 ; @PM8XXX_GPIO_BIAS_PU_1P5_30
	.comm	_PM8XXX_GPIO_MODE_INPUT,4,2     ; @PM8XXX_GPIO_MODE_INPUT
	.comm	_PM8XXX_GPIO_MODE_OUTPUT,4,2    ; @PM8XXX_GPIO_MODE_OUTPUT
	.no_dead_strip	_pm8xxx_pin_config_get
.subsections_via_symbols
