	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxnas_ox820_pinmux_enable
_oxnas_ox820_pinmux_enable:             ## @oxnas_ox820_pinmux_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
	subq	$40, %rsp
	.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, %r14d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	16(%r12), %rbx
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movq	(%rax,%rdx,8), %r14
	leaq	(%rcx,%rcx,2), %r15
	movq	16(%rbx,%r15,8), %r13
	movq	8(%rbx,%r15,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PINMUX_820_BANK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx,%r15,8), %edi
	callq	_BIT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	leaq	(%rbx,%r15,8), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rdi
	addq	$16, %r13
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_5:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	(%r12), %edi
	movq	8(%rbx), %rcx
	movl	(%rbx), %r8d
	movl	(%r13), %r9d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmoveq	%rax, %r14
	movq	_PINMUX_820_SECONDARY_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	xorl	%ebx, %ebx
	cmpl	$1, (%r13)
	movl	4(%r12), %edi
	movl	$0, %ecx
	cmovel	%r15d, %ecx
	movl	%r15d, %edx
	callq	_regmap_write_bits
	movq	_PINMUX_820_TERTIARY_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	cmpl	$2, (%r13)
	movl	4(%r12), %edi
	movl	$0, %ecx
	cmovel	%r15d, %ecx
	movl	%r15d, %edx
	callq	_regmap_write_bits
	movq	_PINMUX_820_QUATERNARY_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	cmpl	$3, (%r13)
	movl	4(%r12), %edi
	movl	$0, %ecx
	cmovel	%r15d, %ecx
	movl	%r15d, %edx
	callq	_regmap_write_bits
	movq	_PINMUX_820_DEBUG_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	cmpl	$4, (%r13)
	movl	4(%r12), %edi
	movl	$0, %ecx
	cmovel	%r15d, %ecx
	movl	%r15d, %edx
	callq	_regmap_write_bits
	movl	4(%r12), %edi
	movq	_PINMUX_820_ALTERNATIVE_SEL@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	cmpl	$5, (%r13)
	movl	%r15d, %ecx
	cmovnel	%ebx, %ecx
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_regmap_write_bits
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ## @PINMUX_820_BANK_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting function %s bank %d pin %d fct %d mask %x\n"

	.comm	_PINMUX_820_SECONDARY_SEL,8,3   ## @PINMUX_820_SECONDARY_SEL
	.comm	_PINMUX_820_TERTIARY_SEL,8,3    ## @PINMUX_820_TERTIARY_SEL
	.comm	_PINMUX_820_QUATERNARY_SEL,8,3  ## @PINMUX_820_QUATERNARY_SEL
	.comm	_PINMUX_820_DEBUG_SEL,8,3       ## @PINMUX_820_DEBUG_SEL
	.comm	_PINMUX_820_ALTERNATIVE_SEL,8,3 ## @PINMUX_820_ALTERNATIVE_SEL
L_.str.1:                               ## @.str.1
	.asciz	"cannot mux pin %u to function %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_oxnas_ox820_pinmux_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxnas_ox820_pinmux_enable
_oxnas_ox820_pinmux_enable:             ; @oxnas_ox820_pinmux_enable
	.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	x22, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldp	x9, x8, [x0, #8]
	ldr	x23, [x9, w21, uxtw #3]
	mov	w9, #24
	umaddl	x27, w22, w9, x8
	ldr	x24, [x27, #16]
	mov	x28, x27
	ldr	x25, [x28, #8]!
Lloh0:
	adrp	x8, _PINMUX_820_BANK_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINMUX_820_BANK_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldr	w0, [x27]
	bl	_BIT
	mov	x20, x0
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x24, #24]
	add	x24, x24, #16
	cbnz	x0, LBB0_1
LBB0_3:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	ldr	x3, [x28]
	ldr	w4, [x27]
	ldr	w5, [x24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x6, x20
	bl	_dev_dbg
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x8, _PINMUX_820_SECONDARY_SEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PINMUX_820_SECONDARY_SEL@GOTPAGEOFF]
	cmp	x25, #0
	csel	x21, xzr, x26, eq
Lloh12:
	ldr	x8, [x8]
	add	x1, x8, x21
	ldr	w8, [x24]
	cmp	w8, #1
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
Lloh13:
	adrp	x8, _PINMUX_820_TERTIARY_SEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PINMUX_820_TERTIARY_SEL@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, x21
	ldr	w8, [x24]
	cmp	w8, #2
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
Lloh16:
	adrp	x8, _PINMUX_820_QUATERNARY_SEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PINMUX_820_QUATERNARY_SEL@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x21
	ldr	w8, [x24]
	cmp	w8, #3
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
Lloh19:
	adrp	x8, _PINMUX_820_DEBUG_SEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PINMUX_820_DEBUG_SEL@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, x21
	ldr	w8, [x24]
	cmp	w8, #4
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
Lloh22:
	adrp	x8, _PINMUX_820_ALTERNATIVE_SEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PINMUX_820_ALTERNATIVE_SEL@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh24:
	ldr	x8, [x8]
	add	x1, x8, x21
	ldr	w8, [x24]
	cmp	w8, #5
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PINMUX_820_BANK_OFFSET,4,2     ; @PINMUX_820_BANK_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting function %s bank %d pin %d fct %d mask %x\n"

	.comm	_PINMUX_820_SECONDARY_SEL,8,3   ; @PINMUX_820_SECONDARY_SEL
	.comm	_PINMUX_820_TERTIARY_SEL,8,3    ; @PINMUX_820_TERTIARY_SEL
	.comm	_PINMUX_820_QUATERNARY_SEL,8,3  ; @PINMUX_820_QUATERNARY_SEL
	.comm	_PINMUX_820_DEBUG_SEL,8,3       ; @PINMUX_820_DEBUG_SEL
	.comm	_PINMUX_820_ALTERNATIVE_SEL,8,3 ; @PINMUX_820_ALTERNATIVE_SEL
l_.str.1:                               ; @.str.1
	.asciz	"cannot mux pin %u to function %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_oxnas_ox820_pinmux_enable
.subsections_via_symbols
