	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_pwrseq_emmc_probe
_mmc_pwrseq_emmc_probe:                 ## @mmc_pwrseq_emmc_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	32(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	_gpiod_cansleep
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_notice
	jmp	LBB0_5
LBB0_3:
	movq	_mmc_pwrseq_emmc_reset_nb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	addq	$24, %rdi
	movl	%eax, 28(%rbx)
	movl	$255, 24(%rbx)
	callq	_register_restart_handler
LBB0_5:
	movq	_mmc_pwrseq_emmc_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmc_pwrseq_register            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_mmc_pwrseq_emmc_reset_nb,4,2   ## @mmc_pwrseq_emmc_reset_nb
L_.str.1:                               ## @.str.1
	.asciz	"EMMC reset pin tied to a sleepy GPIO driver; reset on emergency-reboot disabled\n"

	.comm	_mmc_pwrseq_emmc_ops,4,2        ## @mmc_pwrseq_emmc_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_mmc_pwrseq_emmc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_pwrseq_emmc_probe
_mmc_pwrseq_emmc_probe:                 ; @mmc_pwrseq_emmc_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x20, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #32]
	cbz	x8, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_gpiod_cansleep
	cbz	w0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_notice
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _mmc_pwrseq_emmc_reset_nb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmc_pwrseq_emmc_reset_nb@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #255
	mov	x0, x20
	stp	w9, w8, [x0, #24]!
	bl	_register_restart_handler
LBB0_7:
Lloh16:
	adrp	x8, _mmc_pwrseq_emmc_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmc_pwrseq_emmc_ops@GOTPAGEOFF]
	stp	x19, x8, [x20, #8]
Lloh18:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_pwrseq_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_mmc_pwrseq_emmc_reset_nb,4,2   ; @mmc_pwrseq_emmc_reset_nb
l_.str.1:                               ; @.str.1
	.asciz	"EMMC reset pin tied to a sleepy GPIO driver; reset on emergency-reboot disabled\n"

	.comm	_mmc_pwrseq_emmc_ops,4,2        ; @mmc_pwrseq_emmc_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_mmc_pwrseq_emmc_probe
.subsections_via_symbols
