	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mmc_omap_new_slot
LCPI0_0:
	.long	32                              ## 0x20
	.long	2048                            ## 0x800
	.long	2048                            ## 0x800
	.long	4194304                         ## 0x400000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mmc_omap_new_slot:                     ## @mmc_omap_new_slot
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	16(%rdi), %esi
	movl	$48, %edi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r14
	movq	%rbx, 40(%rax)
	movq	%r15, 32(%rax)
	movl	%r12d, (%rax)
	movq	_MMC_POWER_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	(%rbx), %rax
	movslq	%r12d, %rcx
	movq	%rcx, %rdx
	shlq	$5, %rdx
	movq	8(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, 8(%r14)
	movq	8(%rbx), %rax
	movq	%r14, (%rax,%rcx,8)
	movl	$0, (%r15)
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	cmpl	$4, (%rax,%rdx)
	jl	LBB0_3
## %bb.2:
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movq	_MMC_CAP_ERASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
LBB0_3:
	movq	_mmc_omap_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movl	$400000, 4(%r15)                ## imm = 0x61A80
	xorl	%eax, %eax
	callq	_mmc_omap2
	testq	%rax, %rax
	movl	$24000000, %eax                 ## imm = 0x16E3600
	movl	$48000000, %esi                 ## imm = 0x2DC6C00
	cmovel	%eax, %esi
	movl	%esi, 8(%r15)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_min
	movl	%eax, 8(%r15)
LBB0_5:
	movq	8(%r14), %rax
	movl	24(%rax), %ecx
	movl	%ecx, 36(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [32,2048,2048,4194304]
	movups	%xmm0, 12(%r15)
	movl	$4194304, 28(%r15)              ## imm = 0x400000
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.6:
	leaq	20(%r14), %rdi
	movq	_mmc_omap_cover_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	16(%r14), %rdi
	movq	_mmc_omap_cover_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_tasklet_init
LBB0_7:
	movq	%r15, %rdi
	callq	_mmc_add_host
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.9:
	leaq	32(%r15), %rdi
	movq	_dev_attr_slot_name@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	js	LBB0_16
## %bb.10:
	movq	8(%r14), %rax
LBB0_11:
	xorl	%ebx, %ebx
	cmpq	$0, 16(%rax)
	je	LBB0_20
## %bb.12:
	movq	%r15, %r13
	addq	$32, %r13
	movq	_dev_attr_cover_switch@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	js	LBB0_17
## %bb.13:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_20
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_16:
	movl	%eax, %r12d
LBB0_19:
	movq	%r15, %rdi
	callq	_mmc_remove_host
	movq	%r15, %rdi
	callq	_mmc_free_host
	movl	%r12d, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %r12d
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_19
## %bb.18:
	movq	_dev_attr_slot_name@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_remove_file
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MMC_POWER_UNDEFINED,4,2        ## @MMC_POWER_UNDEFINED
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_ERASE,4,2              ## @MMC_CAP_ERASE
	.comm	_mmc_omap_ops,4,2               ## @mmc_omap_ops
	.comm	_mmc_omap_cover_timer,4,2       ## @mmc_omap_cover_timer
	.comm	_mmc_omap_cover_handler,4,2     ## @mmc_omap_cover_handler
	.comm	_dev_attr_slot_name,4,2         ## @dev_attr_slot_name
	.comm	_dev_attr_cover_switch,4,2      ## @dev_attr_cover_switch
	.no_dead_strip	_mmc_omap_new_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mmc_omap_new_slot
lCPI0_0:
	.long	32                              ; 0x20
	.long	2048                            ; 0x800
	.long	2048                            ; 0x800
	.long	4194304                         ; 0x400000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mmc_omap_new_slot:                     ; @mmc_omap_new_slot
	.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
	mov	x22, x1
	mov	x21, x0
	ldr	w1, [x0, #16]
	mov	w0, #48
	bl	_mmc_alloc_host
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	bl	_mmc_priv
	mov	x20, x0
	str	w22, [x0]
Lloh0:
	adrp	x8, _MMC_POWER_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_POWER_UNDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	ldp	x8, x9, [x21]
	ldr	x8, [x8, #8]
	sbfiz	x10, x22, #5, #32
	add	x8, x8, x10
	str	x8, [x0, #8]
	stp	x19, x21, [x0, #32]
	str	x0, [x9, w22, sxtw #3]
	str	wzr, [x19]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x10]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MMC_CAP_ERASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_CAP_ERASE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
Lloh9:
	adrp	x8, _mmc_omap_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmc_omap_ops@GOTPAGEOFF]
	str	x8, [x19, #40]
	mov	w8, #6784
	movk	w8, #6, lsl #16
	str	w8, [x19, #4]
	bl	_mmc_omap2
	cmp	x0, #0
	mov	w8, #27648
	movk	w8, #732, lsl #16
	mov	w9, #13824
	movk	w9, #366, lsl #16
	csel	w1, w9, w8, eq
	str	w1, [x19, #8]
	ldr	x8, [x21]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_min
	str	w0, [x19, #8]
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #24]
	str	w9, [x19, #36]
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #12]
	mov	w9, #4194304
	str	w9, [x19, #28]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.6:
	add	x0, x20, #20
Lloh13:
	adrp	x8, _mmc_omap_cover_timer@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmc_omap_cover_timer@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x20, #16
Lloh16:
	adrp	x8, _mmc_omap_cover_handler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmc_omap_cover_handler@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tasklet_init
LBB0_7:
	mov	x0, x19
	bl	_mmc_add_host
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_11
; %bb.9:
	add	x0, x19, #32
Lloh19:
	adrp	x1, _dev_attr_slot_name@GOTPAGE
Lloh20:
	ldr	x1, [x1, _dev_attr_slot_name@GOTPAGEOFF]
	bl	_device_create_file
	tbnz	w0, #31, LBB0_15
; %bb.10:
	ldr	x8, [x20, #8]
LBB0_11:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_17
; %bb.12:
	add	x22, x19, #32
Lloh21:
	adrp	x1, _dev_attr_cover_switch@GOTPAGE
Lloh22:
	ldr	x1, [x1, _dev_attr_cover_switch@GOTPAGEOFF]
	mov	x0, x22
	bl	_device_create_file
	tbnz	w0, #31, LBB0_19
; %bb.13:
	add	x0, x20, #16
	bl	_tasklet_schedule
	mov	w21, #0
	b	LBB0_18
LBB0_14:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_15:
	mov	x21, x0
LBB0_16:
	mov	x0, x19
	bl	_mmc_remove_host
	mov	x0, x19
	bl	_mmc_free_host
	b	LBB0_18
LBB0_17:
	mov	w21, #0
LBB0_18:
	mov	x0, x21
	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_19:
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_16
; %bb.20:
Lloh26:
	adrp	x1, _dev_attr_slot_name@GOTPAGE
Lloh27:
	ldr	x1, [x1, _dev_attr_slot_name@GOTPAGEOFF]
	mov	x0, x22
	bl	_device_remove_file
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MMC_POWER_UNDEFINED,4,2        ; @MMC_POWER_UNDEFINED
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_ERASE,4,2              ; @MMC_CAP_ERASE
	.comm	_mmc_omap_ops,4,2               ; @mmc_omap_ops
	.comm	_mmc_omap_cover_timer,4,2       ; @mmc_omap_cover_timer
	.comm	_mmc_omap_cover_handler,4,2     ; @mmc_omap_cover_handler
	.comm	_dev_attr_slot_name,4,2         ; @dev_attr_slot_name
	.comm	_dev_attr_cover_switch,4,2      ; @dev_attr_cover_switch
	.no_dead_strip	_mmc_omap_new_slot
.subsections_via_symbols
