	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77620_pinctrl_enable
_max77620_pinctrl_enable:               ## @max77620_pinctrl_enable
	.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, %r15d
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	_MAX77620_PINMUX_GPIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r12d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	8(%r14), %rax
	movl	%r15d, %ecx
	cmpl	%r12d, (%rax,%rcx,4)
	jne	LBB0_6
## %bb.2:
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
LBB0_3:
	movl	4(%r14), %r12d
	movq	_MAX77620_REG_AME_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_BIT
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77620_PINMUX_GPIO,4,2       ## @MAX77620_PINMUX_GPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO %u doesn't have function %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX77620_REG_AME_GPIO,4,2      ## @MAX77620_REG_AME_GPIO
L_.str.1:                               ## @.str.1
	.asciz	"REG AME GPIO update failed: %d\n"

	.no_dead_strip	_max77620_pinctrl_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77620_pinctrl_enable
_max77620_pinctrl_enable:               ; @max77620_pinctrl_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX77620_PINMUX_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77620_PINMUX_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w20, uxtw #2]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #1
	lsl	w21, w8, w20
LBB0_4:
	ldr	w22, [x19, #4]
Lloh3:
	adrp	x8, _MAX77620_REG_AME_GPIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX77620_REG_AME_GPIO@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	bl	_regmap_update_bits
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77620_PINMUX_GPIO,4,2       ; @MAX77620_PINMUX_GPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO %u doesn't have function %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX77620_REG_AME_GPIO,4,2      ; @MAX77620_REG_AME_GPIO
l_.str.1:                               ; @.str.1
	.asciz	"REG AME GPIO update failed: %d\n"

	.no_dead_strip	_max77620_pinctrl_enable
.subsections_via_symbols
