	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __atlas7_pmx_pin_enable
___atlas7_pmx_pin_enable:               ## @__atlas7_pmx_pin_enable
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r15
	movq	%r14, %rdi
	callq	_atlas7_pin_to_bank
	movq	%rax, %rdx
	movq	_FUNC_ANALOGUE@GOTPCREL(%rip), %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpq	%r12, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	___atlas7_pmx_pin_analog_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_dev_err
	movl	%ebx, %r13d
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	___atlas7_pmx_pin_digital_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_dev_err
	jmp	LBB0_6
LBB0_5:
	movq	_FUNC_CLEAR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movb	(%r15), %cl
	shlq	%cl, %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r14
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15,%rbx), %rdi
	callq	_CLR_REG
	addq	%rax, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_writel
	movq	(%r12), %rax
	movq	8(%r15,%rbx), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	(%rax,%r14,8), %rdi
	callq	_readl
	movq	_FUNC_CLEAR_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	notq	%rdx
	andq	%rax, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	shlq	%cl, %rdi
	orq	%rdx, %rdi
	movq	(%r12), %rax
	movq	8(%r15,%rbx), %rsi
	addq	(%rax,%r14,8), %rsi
	callq	_writel
	movq	(%r12), %rax
	movq	8(%r15,%rbx), %rdi
	addq	(%rax,%r14,8), %rdi
	callq	_readl
	movq	8(%r15,%rbx), %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_6:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMX DUMP ### pin#%d func:%d #### START >>>\n"

	.comm	_FUNC_ANALOGUE,8,3              ## @FUNC_ANALOGUE
L_.str.1:                               ## @.str.1
	.asciz	"Convert pad#%d to analog failed, ret=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Convert pad#%d to digital failed, ret=%d\n"

	.comm	_FUNC_CLEAR_MASK,8,3            ## @FUNC_CLEAR_MASK
L_.str.3:                               ## @.str.3
	.asciz	"bank:%d reg:0x%04x val:0x%08lx\n"

	.no_dead_strip	___atlas7_pmx_pin_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __atlas7_pmx_pin_enable
___atlas7_pmx_pin_enable:               ; @__atlas7_pmx_pin_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #16]
	ldr	x25, [x8]
	add	x23, x25, x22, lsl #4
	mov	x0, x22
	bl	_atlas7_pin_to_bank
	mov	x20, x0
Lloh2:
	adrp	x8, _FUNC_ANALOGUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FUNC_ANALOGUE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	x0, x19
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.1:
	mov	x1, x23
	mov	x2, x20
	bl	___atlas7_pmx_pin_analog_enable
	mov	x24, x0
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x1, x23
	mov	x2, x20
	bl	___atlas7_pmx_pin_digital_enable
	cbz	w0, LBB0_6
; %bb.4:
	mov	x24, x0
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x2, x22
	mov	x3, x24
	bl	_dev_err
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x26, _FUNC_CLEAR_MASK@GOTPAGE
Lloh10:
	ldr	x26, [x26, _FUNC_CLEAR_MASK@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x9, [x23]
	lsl	x24, x8, x9
	ldr	x8, [x19]
	lsl	x27, x20, #3
	ldr	x28, [x8, x27]
	add	x22, x25, x22, lsl #4
	ldr	x0, [x22, #8]
	bl	_CLR_REG
	add	x1, x0, x28
	mov	x0, x24
	bl	_writel
	ldr	x8, [x19]
	ldr	x8, [x8, x27]
	ldr	x9, [x22, #8]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x26]
	ldr	x9, [x23]
	lsl	x8, x8, x9
	bic	x8, x0, x8
	lsl	x9, x21, x9
	orr	x0, x8, x9
	ldr	x8, [x19]
	ldr	x8, [x8, x27]
	ldr	x9, [x22, #8]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x8, [x8, x27]
	ldr	x9, [x22, #8]
	add	x0, x9, x8
	bl	_readl
	ldr	x2, [x22, #8]
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	w24, #0
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMX DUMP ### pin#%d func:%d #### START >>>\n"

	.comm	_FUNC_ANALOGUE,8,3              ; @FUNC_ANALOGUE
l_.str.1:                               ; @.str.1
	.asciz	"Convert pad#%d to analog failed, ret=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Convert pad#%d to digital failed, ret=%d\n"

	.comm	_FUNC_CLEAR_MASK,8,3            ; @FUNC_CLEAR_MASK
l_.str.3:                               ; @.str.3
	.asciz	"bank:%d reg:0x%04x val:0x%08lx\n"

	.no_dead_strip	___atlas7_pmx_pin_enable
.subsections_via_symbols
