	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxnas_ox810se_pinmux_enable
_oxnas_ox810se_pinmux_enable:           ## @oxnas_ox810se_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, %ebx
	movl	%esi, %r14d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	16(%r15), %r12
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movq	(%rax,%rdx,8), %rbx
	leaq	(%rcx,%rcx,2), %r13
	movq	16(%r12,%r13,8), %r14
	movl	8(%r12,%r13,8), %edi
	callq	_BIT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	leaq	(%r12,%r13,8), %rax
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rdi
	addq	$16, %r14
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_14:
	movl	(%r15), %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_15
LBB0_3:
	movl	(%r15), %edi
	movq	(%r12,%r13,8), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movl	(%r14), %r9d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movl	4(%r15), %edi
	cmpq	$0, (%r12,%r13,8)
	jne	LBB0_4
## %bb.5:
	movq	_PINMUX_810_PRIMARY_SEL0@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PINMUX_810_PRIMARY_SEL1@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	$1, (%r14)
	movl	(%rax), %esi
	movl	$0, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmovel	%edx, %ecx
	callq	_regmap_write_bits
	movl	4(%r15), %edi
	cmpq	$0, (%r12,%r13,8)
	jne	LBB0_7
## %bb.8:
	movq	_PINMUX_810_SECONDARY_SEL0@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_PINMUX_810_SECONDARY_SEL1@GOTPCREL(%rip), %rax
LBB0_9:
	cmpl	$2, (%r14)
	movl	(%rax), %esi
	movl	$0, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmovel	%edx, %ecx
	callq	_regmap_write_bits
	movl	4(%r15), %edi
	cmpq	$0, (%r12,%r13,8)
	jne	LBB0_10
## %bb.11:
	movq	_PINMUX_810_TERTIARY_SEL0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_PINMUX_810_TERTIARY_SEL1@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	cmpl	$3, (%r14)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	cmovnel	%ebx, %ecx
	callq	_regmap_write_bits
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting function %s bank %d pin %d fct %d mask %x\n"

	.comm	_PINMUX_810_PRIMARY_SEL1,4,2    ## @PINMUX_810_PRIMARY_SEL1
	.comm	_PINMUX_810_PRIMARY_SEL0,4,2    ## @PINMUX_810_PRIMARY_SEL0
	.comm	_PINMUX_810_SECONDARY_SEL1,4,2  ## @PINMUX_810_SECONDARY_SEL1
	.comm	_PINMUX_810_SECONDARY_SEL0,4,2  ## @PINMUX_810_SECONDARY_SEL0
	.comm	_PINMUX_810_TERTIARY_SEL1,4,2   ## @PINMUX_810_TERTIARY_SEL1
	.comm	_PINMUX_810_TERTIARY_SEL0,4,2   ## @PINMUX_810_TERTIARY_SEL0
L_.str.1:                               ## @.str.1
	.asciz	"cannot mux pin %u to function %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_oxnas_ox810se_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_ox810se_pinmux_enable
_oxnas_ox810se_pinmux_enable:           ; @oxnas_ox810se_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	x8, x24, [x0, #8]
	ldr	x23, [x8, w21, uxtw #3]
	mov	w8, #24
	umaddl	x26, w22, w8, x24
	ldr	w0, [x26, #8]!
	ldr	x25, [x26, #8]
	bl	_BIT
	mov	x20, x0
	ldr	x0, [x25, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w27, w22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25, #24]
	add	x25, x25, #16
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
	mov	w8, #24
	mul	x21, x27, x8
	ldr	x3, [x24, x21]
	ldr	w4, [x26]
	ldr	w5, [x25]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x6, x20
	bl	_dev_dbg
	ldr	w0, [x19, #4]
	ldr	x8, [x24, x21]
Lloh7:
	adrp	x9, _PINMUX_810_PRIMARY_SEL1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PINMUX_810_PRIMARY_SEL1@GOTPAGEOFF]
Lloh9:
	adrp	x10, _PINMUX_810_PRIMARY_SEL0@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PINMUX_810_PRIMARY_SEL0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #1
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
	ldr	w0, [x19, #4]
	ldr	x8, [x24, x21]
Lloh11:
	adrp	x9, _PINMUX_810_SECONDARY_SEL1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PINMUX_810_SECONDARY_SEL1@GOTPAGEOFF]
Lloh13:
	adrp	x10, _PINMUX_810_SECONDARY_SEL0@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PINMUX_810_SECONDARY_SEL0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #2
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
	ldr	w0, [x19, #4]
	ldr	x8, [x24, x21]
Lloh15:
	adrp	x9, _PINMUX_810_TERTIARY_SEL1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PINMUX_810_TERTIARY_SEL1@GOTPAGEOFF]
Lloh17:
	adrp	x10, _PINMUX_810_TERTIARY_SEL0@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PINMUX_810_TERTIARY_SEL0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #3
	csel	w3, w20, wzr, eq
	mov	x2, x20
	bl	_regmap_write_bits
	mov	w0, #0
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting function %s bank %d pin %d fct %d mask %x\n"

	.comm	_PINMUX_810_PRIMARY_SEL1,4,2    ; @PINMUX_810_PRIMARY_SEL1
	.comm	_PINMUX_810_PRIMARY_SEL0,4,2    ; @PINMUX_810_PRIMARY_SEL0
	.comm	_PINMUX_810_SECONDARY_SEL1,4,2  ; @PINMUX_810_SECONDARY_SEL1
	.comm	_PINMUX_810_SECONDARY_SEL0,4,2  ; @PINMUX_810_SECONDARY_SEL0
	.comm	_PINMUX_810_TERTIARY_SEL1,4,2   ; @PINMUX_810_TERTIARY_SEL1
	.comm	_PINMUX_810_TERTIARY_SEL0,4,2   ; @PINMUX_810_TERTIARY_SEL0
l_.str.1:                               ; @.str.1
	.asciz	"cannot mux pin %u to function %u\n"

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