	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns_pinctrl_set_mux
_ns_pinctrl_set_mux:                    ## @ns_pinctrl_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movl	%ebx, %r15d
	movq	8(%rax), %rax
	shlq	$4, %r15
	cmpl	$0, (%rax,%r15)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_BIT
	orl	%eax, %r12d
	incq	%rbx
	movq	8(%r14), %rax
	movslq	(%rax,%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_3
## %bb.4:
	notl	%r12d
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r12d
LBB0_5:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	andl	-36(%rbp), %r12d
	movl	%r12d, -36(%rbp)
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movl	%r12d, %edx
	callq	_regmap_write
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ns_pinctrl_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns_pinctrl_set_mux
_ns_pinctrl_set_mux:                    ; @ns_pinctrl_set_mux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	w9, w20
	ldr	x8, [x0, #8]
	lsl	x20, x9, #4
	ldr	w9, [x8, x20]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_BIT
	orr	w22, w0, w22
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x8, x20]
	cmp	x21, x9
	b.lt	LBB0_2
; %bb.3:
	mvn	w20, w22
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
LBB0_5:
	ldp	w1, w0, [x19]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
	and	w2, w8, w20
	str	w2, [sp, #12]
	ldp	w1, w0, [x19]
	bl	_regmap_write
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ns_pinctrl_set_mux
.subsections_via_symbols
