	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_add_card_debugfs           ## -- Begin function mmc_add_card_debugfs
	.p2align	4, 0x90
_mmc_add_card_debugfs:                  ## @mmc_add_card_debugfs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	callq	_mmc_card_id
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_debugfs_create_dir
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	%r14, 8(%r12)
	movq	_S_IRUSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	16(%r12), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_debugfs_create_x32
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	%r12, %rdi
	callq	_mmc_card_mmc
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_mmc_card_sd
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	_mmc_dbg_card_status_fops@GOTPCREL(%rip), %r8
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_debugfs_create_file
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	callq	_mmc_card_mmc
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	_mmc_dbg_ext_csd_fops@GOTPCREL(%rip), %r8
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_debugfs_create_file
	testl	%eax, %eax
	jne	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_debugfs_remove_recursive
	movq	$0, 8(%r12)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
L_.str.1:                               ## @.str.1
	.asciz	"status"

	.comm	_mmc_dbg_card_status_fops,4,2   ## @mmc_dbg_card_status_fops
L_.str.2:                               ## @.str.2
	.asciz	"ext_csd"

	.comm	_mmc_dbg_ext_csd_fops,4,2       ## @mmc_dbg_ext_csd_fops
L_.str.3:                               ## @.str.3
	.asciz	"failed to initialize debugfs\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_add_card_debugfs           ; -- Begin function mmc_add_card_debugfs
	.p2align	2
_mmc_add_card_debugfs:                  ; @mmc_add_card_debugfs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0, #24]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_mmc_card_id
	ldr	w1, [x20]
	bl	_debugfs_create_dir
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	x20, LBB0_10
; %bb.4:
	str	x20, [x19, #8]
Lloh0:
	adrp	x21, _S_IRUSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S_IRUSR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x3, x19, #16
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_debugfs_create_x32
	cbz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_mmc_card_mmc
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_mmc_card_sd
	cbz	x0, LBB0_8
LBB0_7:
	ldr	w1, [x21]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh6:
	adrp	x4, _mmc_dbg_card_status_fops@GOTPAGE
Lloh7:
	ldr	x4, [x4, _mmc_dbg_card_status_fops@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x19
	bl	_debugfs_create_file
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_mmc_card_mmc
	cbz	x0, LBB0_2
; %bb.9:
	ldr	w1, [x21]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh10:
	adrp	x4, _mmc_dbg_ext_csd_fops@GOTPAGE
Lloh11:
	ldr	x4, [x4, _mmc_dbg_ext_csd_fops@GOTPAGEOFF]
	mov	x2, x20
	mov	x3, x19
	bl	_debugfs_create_file
	cbnz	w0, LBB0_2
LBB0_10:
	mov	x0, x20
	bl	_debugfs_remove_recursive
	str	xzr, [x19, #8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
l_.str.1:                               ; @.str.1
	.asciz	"status"

	.comm	_mmc_dbg_card_status_fops,4,2   ; @mmc_dbg_card_status_fops
l_.str.2:                               ; @.str.2
	.asciz	"ext_csd"

	.comm	_mmc_dbg_ext_csd_fops,4,2       ; @mmc_dbg_ext_csd_fops
l_.str.3:                               ; @.str.3
	.asciz	"failed to initialize debugfs\n"

.subsections_via_symbols
