	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrfld_pinmux_set_mux
_mrfld_pinmux_set_mux:                  ## @mrfld_pinmux_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
	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, %r14d
	callq	_pinctrl_dev_get_drvdata
	movq	8(%rax), %rsi
	movl	%r14d, %edi
	shlq	$4, %rdi
	movl	(%rsi,%rdi), %edx
	movq	_BUFCFG_PINMODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_BUFCFG_PINMODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	leaq	(%rsi,%rdi), %r14
	addq	$4, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rsi,%rdi)
	je	LBB0_5
## %bb.1:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx), %rbx
	addq	$8, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movl	(%rcx,%r15,4), %esi
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mrfld_buf_available
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movl	(%r14), %eax
	cmpq	%rax, %r15
	movq	%r13, %rax
	jb	LBB0_3
LBB0_5:
	movq	%rax, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_raw_spin_lock_irqsave
	cmpl	$0, (%r14)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_8
## %bb.6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	addq	$8, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_mrfld_update_bufcfg
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_8:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_raw_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFCFG_PINMODE_SHIFT,4,2       ## @BUFCFG_PINMODE_SHIFT
	.comm	_BUFCFG_PINMODE_MASK,4,2        ## @BUFCFG_PINMODE_MASK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_mrfld_pinmux_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrfld_pinmux_set_mux
_mrfld_pinmux_set_mux:                  ; @mrfld_pinmux_set_mux
	.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	x20, x2
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x23, [x0, #8]
	mov	w24, w20
	lsl	x8, x24, #4
	add	x22, x23, x8
	ldr	w21, [x23, x8]
Lloh0:
	adrp	x8, _BUFCFG_PINMODE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFCFG_PINMODE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _BUFCFG_PINMODE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFCFG_PINMODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	w8, [x22, #4]!
	cbz	w8, LBB0_4
; %bb.1:
	mov	x26, #0
	add	x8, x23, x24, lsl #4
	add	x27, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x19
	bl	_mrfld_buf_available
	cbz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	ldr	w8, [x22]
	cmp	x26, x8
	b.lo	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
	ldr	w8, [x22]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x26, #0
	lsl	w21, w21, w25
	add	x8, x23, x24, lsl #4
	add	x23, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x26, lsl #2]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_mrfld_update_bufcfg
	add	x26, x26, #1
	ldr	w8, [x22]
	cmp	x26, x8
	b.lo	LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_raw_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFCFG_PINMODE_SHIFT,4,2       ; @BUFCFG_PINMODE_SHIFT
	.comm	_BUFCFG_PINMODE_MASK,4,2        ; @BUFCFG_PINMODE_MASK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_mrfld_pinmux_set_mux
.subsections_via_symbols
