	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirfsoc_pinmux_endisable
_sirfsoc_pinmux_endisable:              ## @sirfsoc_pinmux_endisable
	.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, %r15d
	movq	%rdi, %r12
	movq	_sirfsoc_pmx_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.1:
	movq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13,%r14,8), %edi
	callq	_SIRFSOC_GPIO_PAD_EN
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	(%r13,%r14,8), %ebx
	movl	4(%r13,%r14,8), %edi
	movl	%ebx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %ebx
	testl	%r15d, %r15d
	cmovnel	%ecx, %ebx
	movl	%r15d, %r13d
	movq	%r12, %r15
	movq	8(%r12), %r12
	callq	_SIRFSOC_GPIO_PAD_EN
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %r12
	movl	%r13d, %r15d
	callq	_writel
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	cmpl	$0, 4(%rbx)
	je	LBB0_5
## %bb.6:
	movq	16(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movl	4(%rbx), %edi
	notl	%edi
	andl	%eax, %edi
	orl	8(%rbx), %edi
	movq	16(%rbx), %rsi
	addq	(%r12), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sirfsoc_pmx_functions,8,3      ## @sirfsoc_pmx_functions
	.no_dead_strip	_sirfsoc_pinmux_endisable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirfsoc_pinmux_endisable
_sirfsoc_pinmux_endisable:              ; @sirfsoc_pinmux_endisable
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _sirfsoc_pmx_functions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sirfsoc_pmx_functions@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x22, [x8, w1, uxtw #3]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	ldr	x8, [x22, #24]
	add	x24, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #8]
	ldr	w0, [x24]
	bl	_SIRFSOC_GPIO_PAD_EN
	add	x0, x0, x21
	bl	_readl
	ldur	w8, [x24, #-4]
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w20, #0
	csel	w21, w8, w9, eq
	ldr	x25, [x19, #8]
	ldr	w0, [x24], #8
	bl	_SIRFSOC_GPIO_PAD_EN
	add	x1, x0, x25
	mov	x0, x21
	bl	_writel
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x22, #16]
	add	x0, x9, x8
	bl	_readl
	ldp	w8, w9, [x22, #4]
	bic	w8, w0, w8
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x22, #16]
	add	x1, x9, x8
	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
	b	_writel
LBB0_6:
	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	_sirfsoc_pmx_functions,8,3      ; @sirfsoc_pmx_functions
	.no_dead_strip	_sirfsoc_pinmux_endisable
.subsections_via_symbols
