	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atlas7_pmx_set_mux
_atlas7_pmx_set_mux:                    ## @atlas7_pmx_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	16(%rax), %rax
	movq	(%rax), %r13
	movq	8(%rax), %rbx
	shlq	$4, %r14
	leaq	(%rbx,%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx,%r14), %esi
	shlq	$4, %r15
	movl	8(%r13,%r15), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	(%r13,%r15), %rax
	cmpq	_sd3_9_pins@GOTPCREL(%rip), %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	_SYS2PCI_SDIO9SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
LBB0_2:
	leaq	(%r15,%r13), %rax
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx,%r14), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___atlas7_pmx_pin_input_disable_clr
	incq	%r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rax
	addq	$8, %r13
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %r14
	leaq	(%r14,%r13), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___atlas7_pmx_pin_input_disable_set
	movl	(%r14,%r13), %edx
	movl	4(%r14,%r13), %esi
	movq	%r12, %rdi
	callq	___atlas7_pmx_pin_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movl	$1, %edi
	callq	_BUG_ON
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_debug
	xorl	%eax, %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 ### Function:[%s] Group:[%s] #### START >>>\n"

	.comm	_sd3_9_pins,4,2                 ## @sd3_9_pins
L_.str.1:                               ## @.str.1
	.asciz	"sd9"

	.comm	_SYS2PCI_SDIO9SEL,8,3           ## @SYS2PCI_SDIO9SEL
L_.str.2:                               ## @.str.2
	.asciz	"FUNC:%s GRP:%s PIN#%d.%d failed, ret=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"PMX DUMP ### Function:[%s] Group:[%s] #### END <<<\n"

	.no_dead_strip	_atlas7_pmx_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atlas7_pmx_set_mux
_atlas7_pmx_set_mux:                    ; @atlas7_pmx_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	x20, x2
	mov	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldp	x24, x9, [x8]
	add	x22, x9, x21, lsl #4
	ldr	w1, [x22]
	lsl	x20, x20, #4
	add	x23, x24, x20
	ldr	w2, [x23, #8]!
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x24, x20]
Lloh2:
	adrp	x9, _sd3_9_pins@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sd3_9_pins@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w0, eq
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _SYS2PCI_SDIO9SEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SYS2PCI_SDIO9SEL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	ldr	x24, [x22, #8]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x25, #0
	mov	x26, #0
Lloh9:
	adrp	x20, l_.str.2@PAGE
Lloh10:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	___atlas7_pmx_pin_input_disable_clr
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #8
	cmp	x26, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	add	x21, x8, x25
	mov	x0, x19
	mov	x1, x21
	bl	___atlas7_pmx_pin_input_disable_set
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	___atlas7_pmx_pin_enable
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x6, x0
	ldr	w0, [x19]
	ldr	w2, [x22]
	ldr	w3, [x23]
	ldp	w5, w4, [x21]
	mov	x1, x20
	bl	_dev_err
	mov	w0, #1
	bl	_BUG_ON
	b	LBB0_4
LBB0_7:
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMX DUMP ### Function:[%s] Group:[%s] #### START >>>\n"

	.comm	_sd3_9_pins,4,2                 ; @sd3_9_pins
l_.str.1:                               ; @.str.1
	.asciz	"sd9"

	.comm	_SYS2PCI_SDIO9SEL,8,3           ; @SYS2PCI_SDIO9SEL
l_.str.2:                               ; @.str.2
	.asciz	"FUNC:%s GRP:%s PIN#%d.%d failed, ret=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"PMX DUMP ### Function:[%s] Group:[%s] #### END <<<\n"

	.no_dead_strip	_atlas7_pmx_set_mux
.subsections_via_symbols
