	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcs_set_mux
_pcs_set_mux:                           ## @pcs_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_pinctrl_dev_get_drvdata
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pinmux_generic_get_function
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	40(%r14), %edi
	movl	16(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_dbg
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.4:
	leaq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_raw_spin_lock_irqsave
	leaq	(%r12,%rbx), %r15
	movl	8(%r12,%rbx), %edi
	callq	*8(%r13)
	cmpq	$0, 32(%r13)
	cmoveq	%r13, %r15
	movl	4(%r12,%rbx), %edi
	xorl	%eax, %edi
	andl	(%r15), %edi
	xorl	%eax, %edi
	movl	8(%r12,%rbx), %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	*24(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_raw_spin_unlock_irqrestore
	incq	%r14
	movslq	(%r12), %rax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jl	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling %s function%i\n"

	.no_dead_strip	_pcs_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcs_set_mux
_pcs_set_mux:                           ; @pcs_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, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_pinmux_generic_get_function
	ldr	x21, [x0]
	cbz	x21, LBB0_6
; %bb.2:
	ldr	w0, [x19, #40]
	ldr	w2, [x21, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_dbg
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	x23, #0
	add	x20, x19, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x21, #8]
	mov	x0, x20
	bl	_raw_spin_lock_irqsave
	ldr	x8, [x19, #8]
	add	x24, x24, x22
	ldr	w0, [x24, #8]
	blr	x8
	ldp	x9, x8, [x19, #24]
	cmp	x8, #0
	csel	x8, x19, x24, eq
	ldr	w8, [x8]
	bic	w10, w0, w8
	ldp	w11, w1, [x24, #4]
	and	w8, w11, w8
	orr	w0, w8, w10
	blr	x9
	mov	x0, x20
	bl	_raw_spin_unlock_irqrestore
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #12
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling %s function%i\n"

	.no_dead_strip	_pcs_set_mux
.subsections_via_symbols
