	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_build_funcs_groups
_axp20x_build_funcs_groups:             ## @axp20x_build_funcs_groups
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movl	(%rax), %r13d
	movq	_AXP20X_FUNC_GPIO_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rsi, (%rcx,%rdx)
	movq	_AXP20X_MUX_GPIO_OUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 24(%rcx,%rdx)
	movq	_AXP20X_FUNC_GPIO_IN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rsi, (%rcx,%rdx)
	movq	_AXP20X_MUX_GPIO_IN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 24(%rcx,%rdx)
	movq	_AXP20X_FUNC_LDO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rsi, (%rcx,%rdx)
	movq	_AXP20X_FUNC_ADC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rsi, (%rcx,%rdx)
	movl	24(%rax), %eax
	movl	%eax, 24(%rcx,%rdx)
	movl	%r13d, %eax
	andl	$-8, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r12d
	andl	$3, %r12d
	andq	$-4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %eax
	andl	$3, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	shlq	$5, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r14), %rax
	movq	_AXP20X_FUNC_GPIO_IN@GOTPCREL(%rip), %rdx
	cmpq	%r14, (%rdx)
	movq	%rax, %r14
	jbe	LBB0_19
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r14, %rbx
	shlq	$5, %rbx
	movl	%r13d, 8(%rcx,%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rdx
	movq	8(%rdx), %rdx
	cmpl	$8, %r13d
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	subq	%rdx, %rdi
	movl	$0, %esi
	cmpq	$32, %rdi
	jb	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$24, -72(%rbp)                  ## 8-byte Folded Reload
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rdx,%rsi,4), %xmm0
	movups	16(%rdx,%rsi,4), %xmm1
	movups	%xmm0, (%rax,%rsi,4)
	movups	%xmm1, 16(%rax,%rsi,4)
	movups	32(%rdx,%rsi,4), %xmm0
	movups	48(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 32(%rax,%rsi,4)
	movups	%xmm1, 48(%rax,%rsi,4)
	movups	64(%rdx,%rsi,4), %xmm0
	movups	80(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 64(%rax,%rsi,4)
	movups	%xmm1, 80(%rax,%rsi,4)
	movups	96(%rdx,%rsi,4), %xmm0
	movups	112(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 96(%rax,%rsi,4)
	movups	%xmm1, 112(%rax,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rdi
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rax,%rsi,4), %rdi
	addq	$16, %rdi
	leaq	(%rdx,%rsi,4), %rsi
	addq	$16, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rsi,%rbx), %xmm0
	movups	(%rsi,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	cmpq	%r13, %rdi
	je	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %r8
	notq	%r8
	addq	%r13, %r8
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, (%rax,%rsi,4)
	incq	%rsi
	decq	%rbx
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$3, %r8
	jb	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, (%rax,%rsi,4)
	movl	4(%rdx,%rsi,4), %edi
	movl	%edi, 4(%rax,%rsi,4)
	movl	8(%rdx,%rsi,4), %edi
	movl	%edi, 8(%rax,%rsi,4)
	movl	12(%rdx,%rsi,4), %edi
	movl	%edi, 12(%rax,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r13
	jne	LBB0_17
	jmp	LBB0_18
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_19:
	movq	(%r15), %rax
	movl	20(%rax), %esi
	movq	_AXP20X_FUNC_LDO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	addq	%rdx, %rcx
	movq	8(%rax), %r8
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_axp20x_funcs_groups_from_mask
	testl	%eax, %eax
	je	LBB0_20
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	(%r15), %rax
	movl	16(%rax), %esi
	movq	_AXP20X_FUNC_ADC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$5, %rcx
	addq	8(%r15), %rcx
	movq	8(%rax), %r8
	movq	%rbx, %rdi
	movl	%r13d, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axp20x_funcs_groups_from_mask  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio_out"

	.comm	_AXP20X_FUNC_GPIO_OUT,8,3       ## @AXP20X_FUNC_GPIO_OUT
	.comm	_AXP20X_MUX_GPIO_OUT,4,2        ## @AXP20X_MUX_GPIO_OUT
L_.str.1:                               ## @.str.1
	.asciz	"gpio_in"

	.comm	_AXP20X_FUNC_GPIO_IN,8,3        ## @AXP20X_FUNC_GPIO_IN
	.comm	_AXP20X_MUX_GPIO_IN,4,2         ## @AXP20X_MUX_GPIO_IN
L_.str.2:                               ## @.str.2
	.asciz	"ldo"

	.comm	_AXP20X_FUNC_LDO,8,3            ## @AXP20X_FUNC_LDO
L_.str.3:                               ## @.str.3
	.asciz	"adc"

	.comm	_AXP20X_FUNC_ADC,8,3            ## @AXP20X_FUNC_ADC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_axp20x_build_funcs_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_build_funcs_groups
_axp20x_build_funcs_groups:             ; @axp20x_build_funcs_groups
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	mov	x22, #0
Lloh0:
	adrp	x9, _AXP20X_FUNC_GPIO_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXP20X_FUNC_GPIO_OUT@GOTPAGEOFF]
	ldp	x10, x8, [x0]
Lloh2:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #5
Lloh3:
	adrp	x11, l_.str@PAGE
Lloh4:
	add	x11, x11, l_.str@PAGEOFF
	str	x11, [x9]
Lloh5:
	adrp	x24, _AXP20X_FUNC_GPIO_IN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AXP20X_FUNC_GPIO_IN@GOTPAGEOFF]
	ldr	x11, [x24]
	add	x11, x8, x11, lsl #5
Lloh7:
	adrp	x12, l_.str.1@PAGE
Lloh8:
	add	x12, x12, l_.str.1@PAGEOFF
	str	x12, [x11]
Lloh9:
	adrp	x25, _AXP20X_FUNC_LDO@GOTPAGE
Lloh10:
	ldr	x25, [x25, _AXP20X_FUNC_LDO@GOTPAGEOFF]
	ldr	x12, [x25]
Lloh11:
	adrp	x13, l_.str.2@PAGE
Lloh12:
	add	x13, x13, l_.str.2@PAGEOFF
	lsl	x12, x12, #5
	str	x13, [x8, x12]
Lloh13:
	adrp	x12, _AXP20X_MUX_GPIO_OUT@GOTPAGE
Lloh14:
	ldr	x12, [x12, _AXP20X_MUX_GPIO_OUT@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
	str	w12, [x9, #24]
Lloh16:
	adrp	x9, _AXP20X_MUX_GPIO_IN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AXP20X_MUX_GPIO_IN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x23, _AXP20X_FUNC_ADC@GOTPAGE
Lloh20:
	ldr	x23, [x23, _AXP20X_FUNC_ADC@GOTPAGEOFF]
	str	w9, [x11, #24]
	ldr	x9, [x23]
	add	x9, x8, x9, lsl #5
Lloh21:
	adrp	x11, l_.str.3@PAGE
Lloh22:
	add	x11, x11, l_.str.3@PAGEOFF
	str	x11, [x9]
	ldr	w21, [x10]
	ldr	w10, [x10, #24]
	str	w10, [x9, #24]
	and	x26, x21, #0xfffffff0
Lloh23:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x22, #1
	ldr	x10, [x24]
	cmp	x10, x22
	mov	x22, x9
	b.ls	LBB0_12
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	lsl	x28, x22, #5
	add	x8, x8, x28
	str	w21, [x8, #8]
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_devm_kcalloc
	ldr	x8, [x20, #8]
	add	x9, x8, x28
	str	x0, [x9, #16]
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x11, #0
	ldr	x9, [x20]
	ldr	x9, [x9, #8]
	cmp	w21, #16
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x10, x0, x9
	cmp	x10, #64
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x0, #32
	add	x11, x9, #32
	mov	x12, x26
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x11, x26
	cmp	x26, x21
	b.eq	LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	x12, x11, #2
	add	x10, x0, x12
	add	x9, x9, x12
	sub	x11, x21, x11
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x9], #4
	str	w12, [x10], #4
	subs	x11, x11, #1
	b.ne	LBB0_10
	b	LBB0_1
LBB0_11:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	ldr	x9, [x20]
	ldr	w1, [x9, #20]
	ldr	x10, [x25]
	add	x3, x8, x10, lsl #5
	ldr	x4, [x9, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_axp20x_funcs_groups_from_mask
	cbz	w0, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldp	x8, x9, [x20]
	ldr	w1, [x8, #16]
	ldr	x10, [x23]
	add	x3, x9, x10, lsl #5
	ldr	x4, [x8, #8]
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_axp20x_funcs_groups_from_mask
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio_out"

	.comm	_AXP20X_FUNC_GPIO_OUT,8,3       ; @AXP20X_FUNC_GPIO_OUT
	.comm	_AXP20X_MUX_GPIO_OUT,4,2        ; @AXP20X_MUX_GPIO_OUT
l_.str.1:                               ; @.str.1
	.asciz	"gpio_in"

	.comm	_AXP20X_FUNC_GPIO_IN,8,3        ; @AXP20X_FUNC_GPIO_IN
	.comm	_AXP20X_MUX_GPIO_IN,4,2         ; @AXP20X_MUX_GPIO_IN
l_.str.2:                               ; @.str.2
	.asciz	"ldo"

	.comm	_AXP20X_FUNC_LDO,8,3            ; @AXP20X_FUNC_LDO
l_.str.3:                               ; @.str.3
	.asciz	"adc"

	.comm	_AXP20X_FUNC_ADC,8,3            ; @AXP20X_FUNC_ADC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_axp20x_build_funcs_groups
.subsections_via_symbols
