	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_change_pinstate
_esdhc_change_pinstate:                 ## @esdhc_change_pinstate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	8(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	24(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movq	16(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addl	$-128, %r14d
	cmpl	$4, %r14d
	ja	LBB0_8
## %bb.5:
	movl	$26, %eax
	btl	%r14d, %eax
	jae	LBB0_6
## %bb.7:
	movq	%r15, %rax
	addq	$16, %rax
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rax
	addq	$24, %rax
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rax
LBB0_9:
	movq	(%rax), %rsi
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pinctrl_select_state           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"change pinctrl state for uhs %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_esdhc_change_pinstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_change_pinstate
_esdhc_change_pinstate:                 ; @esdhc_change_pinstate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x19, x0
	ldr	w0, [x21]
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	x0, [x19]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x21, x19
	ldr	x0, [x21, #8]!
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x22, x19
	ldr	x0, [x22, #24]!
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x23, x19
	ldr	x0, [x23, #16]!
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	sub	w8, w20, #128
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #26
	tst	w9, w10
	csel	x9, x23, x22, ne
	cmp	w8, #4
	csel	x8, x21, x9, hi
	ldr	x1, [x8]
	ldr	x0, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pinctrl_select_state
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"change pinctrl state for uhs %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_esdhc_change_pinstate
.subsections_via_symbols
