	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_pmx_gpio_set_direction
_axp20x_pmx_gpio_set_direction:         ## @axp20x_pmx_gpio_set_direction
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	(%rax), %rax
	testl	%r15d, %r15d
	jne	LBB0_1
## %bb.2:
	movq	_AXP20X_FUNC_GPIO_OUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_AXP20X_FUNC_GPIO_IN@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axp20x_pmx_set                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP20X_FUNC_GPIO_IN,8,3        ## @AXP20X_FUNC_GPIO_IN
	.comm	_AXP20X_FUNC_GPIO_OUT,8,3       ## @AXP20X_FUNC_GPIO_OUT
	.no_dead_strip	_axp20x_pmx_gpio_set_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_pmx_gpio_set_direction
_axp20x_pmx_gpio_set_direction:         ; @axp20x_pmx_gpio_set_direction
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AXP20X_FUNC_GPIO_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXP20X_FUNC_GPIO_OUT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _AXP20X_FUNC_GPIO_IN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AXP20X_FUNC_GPIO_IN@GOTPAGEOFF]
	cmp	w19, #0
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x21
	mov	x1, x20
	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
	b	_axp20x_pmx_set
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP20X_FUNC_GPIO_IN,8,3        ; @AXP20X_FUNC_GPIO_IN
	.comm	_AXP20X_FUNC_GPIO_OUT,8,3       ; @AXP20X_FUNC_GPIO_OUT
	.no_dead_strip	_axp20x_pmx_gpio_set_direction
.subsections_via_symbols
