	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_pinmux_set_mux
_msm_pinmux_set_mux:                    ## @msm_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
	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, %r13d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	(%rax), %r12
	movl	%ebx, %r14d
	shlq	$4, %r14
	movslq	(%r12,%r14), %rbx
	movl	4(%r12,%r14), %edi
	callq	_order_base_2
	leaq	(%rbx,%rax), %rdi
	decq	%rdi
	movl	(%r12,%r14), %esi
	callq	_GENMASK
	movl	%eax, %r15d
	movl	4(%r12,%r14), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r12,%r14), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, (%rcx,%rbx,4)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	addq	%r14, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_msm_readl_ctl
	notl	%r15d
	andl	%eax, %r15d
	movb	(%r12), %cl
	shll	%cl, %ebx
	orl	%r15d, %ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_msm_writel_ctl
	movq	%r14, %rdi
	callq	_raw_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_msm_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 msm_pinmux_set_mux
_msm_pinmux_set_mux:                    ; @msm_pinmux_set_mux
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
	add	x20, x25, w23, uxtw #4
	ldp	w21, w0, [x20]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	bl	_order_base_2
	add	x8, x21, x0
	sub	x0, x8, #1
	ldr	w1, [x20]
	bl	_GENMASK
	mov	x21, x0
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	w9, w23
	add	x9, x25, x9, lsl #4
	ldr	x9, [x9, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x24, lsl #2]
	cmp	w10, w22
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	cmp	x8, x24
	b.ne	LBB0_2
; %bb.4:
	mov	x24, x8
	b	LBB0_6
LBB0_5:
	mov	w24, #0
LBB0_6:
	cmp	w24, w8
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_msm_readl_ctl
	bic	w8, w0, w21
	ldr	w9, [x20]
	lsl	w9, w24, w9
	orr	w0, w9, w8
	mov	x1, x19
	mov	x2, x20
	bl	_msm_writel_ctl
	mov	x0, x19
	bl	_raw_spin_unlock_irqrestore
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_msm_pinmux_set_mux
.subsections_via_symbols
