	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rzn1_set_mux
_rzn1_set_mux:                          ## @rzn1_set_mux
	.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, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	16(%rax), %r13
	movl	%ebx, %r14d
	shlq	$5, %r14
	movl	(%r13,%r14), %r12d
	movl	24(%r13,%r14), %r8d
	movl	8(%rax), %edi
	movq	(%rax), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	movl	(%rax,%rdx,4), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %r9d
	callq	_dev_dbg
	movq	_LOCK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_rzn1_hw_set_lock
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	addq	%r13, %r14
	addq	$16, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	-8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_rzn1_set_hw_pin_func
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movq	_LOCK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rzn1_hw_set_lock
	xorl	%eax, %eax
	addq	$8, %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	"set mux %s(%d) group %s(%d)\n"

	.comm	_LOCK_ALL,4,2                   ## @LOCK_ALL
	.no_dead_strip	_rzn1_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rzn1_set_mux
_rzn1_set_mux:                          ; @rzn1_set_mux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #16]
	mov	w9, w20
	add	x23, x8, x9, lsl #5
	ldr	w22, [x23]
	ldr	w0, [x0, #8]
	ldr	x8, [x19]
	ldr	w2, [x8, w21, uxtw #2]
	ldr	w4, [x23, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	mov	x5, x20
	bl	_dev_dbg
Lloh2:
	adrp	x20, _LOCK_ALL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _LOCK_ALL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x1
	bl	_rzn1_hw_set_lock
	cbz	w22, LBB0_3
; %bb.1:
	mov	x21, #0
	add	x24, x23, #16
	add	x23, x23, #8
	lsl	x22, x22, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x21]
	ldr	x8, [x23]
	ldr	w2, [x8, x21]
	mov	x0, x19
	mov	w3, #0
	bl	_rzn1_set_hw_pin_func
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_2
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rzn1_hw_set_lock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set mux %s(%d) group %s(%d)\n"

	.comm	_LOCK_ALL,4,2                   ; @LOCK_ALL
	.no_dead_strip	_rzn1_set_mux
.subsections_via_symbols
