	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_pmx_set_mux
_axp20x_pmx_set_mux:                    ## @axp20x_pmx_set_mux
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	_AXP20X_FUNC_GPIO_IN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jae	LBB0_5
## %bb.1:
	movq	_AXP20X_FUNC_LDO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%ebx, (%rcx)
	setne	%al
	movq	8(%r12), %rcx
	movl	(%rcx,%rax,4), %r13d
	movl	%r14d, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	movq	_AXP20X_FUNC_LDO@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
LBB0_5:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axp20x_pmx_set                 ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP20X_FUNC_GPIO_IN,4,2        ## @AXP20X_FUNC_GPIO_IN
	.comm	_AXP20X_FUNC_LDO,4,2            ## @AXP20X_FUNC_LDO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp20x_pmx_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_pmx_set_mux
_axp20x_pmx_set_mux:                    ; @axp20x_pmx_set_mux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
Lloh0:
	adrp	x8, _AXP20X_FUNC_GPIO_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP20X_FUNC_GPIO_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.hs	LBB0_4
; %bb.1:
Lloh3:
	adrp	x23, _AXP20X_FUNC_LDO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AXP20X_FUNC_LDO@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w21
	cset	w8, ne
	ldr	x9, [x22, #8]
	ldr	w24, [x9, w8, uxtw #2]
	mov	x0, x19
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	x8, [x22]
	ldr	w2, [x8, w21, uxtw #2]
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_axp20x_pmx_set
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP20X_FUNC_GPIO_IN,4,2        ; @AXP20X_FUNC_GPIO_IN
	.comm	_AXP20X_FUNC_LDO,4,2            ; @AXP20X_FUNC_LDO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp20x_pmx_set_mux
.subsections_via_symbols
