	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltq_pmx_set
_ltq_pmx_set:                           ## @ltq_pmx_set
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	24(%rax), %rbx
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %r14
	cmpl	$0, (%rbx,%r14,8)
	je	LBB0_9
## %bb.1:
	leaq	(%rbx,%r14,8), %r13
	movl	4(%rbx,%r14,8), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_match_group_mux
	testq	%rax, %rax
	js	LBB0_8
## %bb.2:
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.3:
	leaq	(%rbx,%r14,8), %rbx
	addq	$4, %rbx
	xorl	%r15d, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	4(%rbx), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r12, %rdi
	callq	_match_mfp
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r14d
	movl	%eax, %edi
	shlq	$2, %rdi
	addq	16(%r12), %rdi
	movl	(%rbx), %esi
	callq	_match_mux
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	*(%r12)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jl	LBB0_4
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	24(%r12), %rbx
LBB0_9:
	movl	8(%r12), %edi
	movl	16(%rbx,%r14,8), %edx
	leaq	L_.str(%rip), %rsi
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	8(%r12), %edi
	movq	4(%rbx), %rax
	movl	(%rax,%r15,4), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_14:
	movl	8(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set the pin group: %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"could not find mfp for pin %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to apply mux %d for pin %d\n"

	.no_dead_strip	_ltq_pmx_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltq_pmx_set
_ltq_pmx_set:                           ; @ltq_pmx_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x23, [x0, #24]
	mov	w22, w21
	mov	w8, #24
	umaddl	x21, w21, w8, x23
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.1:
	mov	w8, #24
	madd	x25, x22, x8, x23
	ldr	w2, [x25, #4]!
	mov	x0, x21
	mov	x1, x19
	bl	_match_group_mux
	tbnz	x0, #63, LBB0_8
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x26, #0
	mov	w8, #24
	madd	x8, x22, x8, x23
	add	x27, x8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x19
	bl	_match_mfp
	tbnz	w0, #31, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	x8, [x19, #16]
	add	x0, x8, w0, uxtw #2
	ldr	w1, [x25]
	bl	_match_mux
	mov	x24, x0
	ldr	x8, [x19]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	blr	x8
	cbnz	w0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x21]
	cmp	x26, x8
	b.lt	LBB0_4
LBB0_7:
	mov	w22, #0
	b	LBB0_11
LBB0_8:
	ldr	x23, [x19, #24]
LBB0_9:
	ldr	w0, [x19, #8]
	mov	w8, #24
	madd	x8, x22, x8, x23
	ldr	w2, [x8, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	ldr	w0, [x19, #8]
	ldr	x8, [x27]
	ldr	w2, [x8, x26, lsl #2]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_13:
	mov	x22, x0
	ldr	w0, [x19, #8]
	str	x23, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set the pin group: %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"could not find mfp for pin %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to apply mux %d for pin %d\n"

	.no_dead_strip	_ltq_pmx_set
.subsections_via_symbols
