	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynq_pinmux_set_mux
_zynq_pinmux_set_mux:                   ## @zynq_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	16(%rax), %rax
	movl	%r14d, %ecx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	movq	_ZYNQ_PMUX_sdio0_cd@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	je	LBB0_6
## %bb.1:
	movq	_ZYNQ_PMUX_sdio0_wp@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	je	LBB0_6
## %bb.2:
	movq	_ZYNQ_PMUX_sdio1_cd@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	je	LBB0_6
## %bb.3:
	movq	_ZYNQ_PMUX_sdio1_wp@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	je	LBB0_6
## %bb.4:
	cmpl	$0, 8(%rax,%rcx)
	jle	LBB0_8
## %bb.5:
	leaq	(%rax,%rcx), %r14
	addq	$8, %r14
	shlq	$4, %r13
	addq	%r12, %r13
	addq	$12, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %ebx
	shll	$2, %ebx
	addl	(%r15), %ebx
	movl	4(%r15), %edi
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ZYNQ_PINMUX_MUX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-48(%rbp), %eax
	movl	(%r13), %edx
	movq	_ZYNQ_PINMUX_MUX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, -48(%rbp)
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_10
	jmp	LBB0_8
LBB0_6:
	movl	4(%r15), %edi
	shlq	$4, %r13
	movl	(%r12,%r13), %esi
	addl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	4(%r12,%r13), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movb	8(%r12,%r13), %cl
	shll	%cl, %edx
	leaq	(%r12,%r13), %rcx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	4(%r15), %edi
	movl	(%rcx), %esi
	addl	(%r15), %esi
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZYNQ_PMUX_sdio0_cd,4,2         ## @ZYNQ_PMUX_sdio0_cd
	.comm	_ZYNQ_PMUX_sdio0_wp,4,2         ## @ZYNQ_PMUX_sdio0_wp
	.comm	_ZYNQ_PMUX_sdio1_cd,4,2         ## @ZYNQ_PMUX_sdio1_cd
	.comm	_ZYNQ_PMUX_sdio1_wp,4,2         ## @ZYNQ_PMUX_sdio1_wp
	.comm	_ZYNQ_PINMUX_MUX_MASK,4,2       ## @ZYNQ_PINMUX_MUX_MASK
	.comm	_ZYNQ_PINMUX_MUX_SHIFT,4,2      ## @ZYNQ_PINMUX_MUX_SHIFT
	.no_dead_strip	_zynq_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 zynq_pinmux_set_mux
_zynq_pinmux_set_mux:                   ; @zynq_pinmux_set_mux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldp	x8, x10, [x0, #8]
	add	x22, x10, w20, uxtw #4
	mov	w9, w21
Lloh0:
	adrp	x11, _ZYNQ_PMUX_sdio0_cd@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ZYNQ_PMUX_sdio0_cd@GOTPAGEOFF]
Lloh2:
	adrp	x12, _ZYNQ_PMUX_sdio0_wp@GOTPAGE
Lloh3:
	ldr	x12, [x12, _ZYNQ_PMUX_sdio0_wp@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
Lloh5:
	ldr	w12, [x12]
Lloh6:
	adrp	x13, _ZYNQ_PMUX_sdio1_cd@GOTPAGE
Lloh7:
	ldr	x13, [x13, _ZYNQ_PMUX_sdio1_cd@GOTPAGEOFF]
Lloh8:
	adrp	x14, _ZYNQ_PMUX_sdio1_wp@GOTPAGE
Lloh9:
	ldr	x14, [x14, _ZYNQ_PMUX_sdio1_wp@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x13]
Lloh11:
	ldr	w14, [x14]
	cmp	w11, w21
	ccmp	w12, w21, #4, ne
	ccmp	w13, w21, #4, ne
	ccmp	w14, w21, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldp	w10, w0, [x19]
	add	x20, x8, x9, lsl #4
	ldr	w8, [x20]
	add	w1, w8, w10
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x20, #4]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	ldr	x9, [x22]
	ldr	w9, [x9]
	ldr	w10, [x20, #8]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldp	w8, w0, [x19]
	ldr	w9, [x20]
	add	w1, w9, w8
	bl	_regmap_write
	cbnz	w0, LBB0_9
	b	LBB0_8
LBB0_3:
	mov	w11, w20
	add	x21, x10, x11, lsl #4
	ldr	w10, [x21, #8]!
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	add	x8, x8, x9, lsl #4
	add	x24, x8, #12
Lloh12:
	adrp	x25, _ZYNQ_PINMUX_MUX_MASK@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ZYNQ_PINMUX_MUX_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x26, _ZYNQ_PINMUX_MUX_SHIFT@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ZYNQ_PINMUX_MUX_SHIFT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w8, [x8, x23, lsl #2]
	ldp	w9, w0, [x19]
	add	w20, w9, w8, lsl #2
	add	x2, sp, #8
	mov	x1, x20
	bl	_regmap_read
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	ldr	w9, [x24]
	ldr	w10, [x26]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_regmap_write
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_8:
	mov	w0, #0
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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ZYNQ_PMUX_sdio0_cd,4,2         ; @ZYNQ_PMUX_sdio0_cd
	.comm	_ZYNQ_PMUX_sdio0_wp,4,2         ; @ZYNQ_PMUX_sdio0_wp
	.comm	_ZYNQ_PMUX_sdio1_cd,4,2         ; @ZYNQ_PMUX_sdio1_cd
	.comm	_ZYNQ_PMUX_sdio1_wp,4,2         ; @ZYNQ_PMUX_sdio1_wp
	.comm	_ZYNQ_PINMUX_MUX_MASK,4,2       ; @ZYNQ_PINMUX_MUX_MASK
	.comm	_ZYNQ_PINMUX_MUX_SHIFT,4,2      ; @ZYNQ_PINMUX_MUX_SHIFT
	.no_dead_strip	_zynq_pinmux_set_mux
.subsections_via_symbols
