	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wbsd_alloc_mmc
LCPI0_0:
	.long	128                             ## 0x80
	.long	65536                           ## 0x10000
	.long	65536                           ## 0x10000
	.long	4087                            ## 0xff7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wbsd_alloc_mmc:                        ## @wbsd_alloc_mmc
	.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	%rdi, %r14
	movl	$24, %edi
	movq	%r14, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r12
	movq	%rbx, 16(%rax)
	movl	$-1, (%rax)
	movq	_wbsd_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movabsq	$103079215104375000, %rax       ## imm = 0x16E36000005B8D8
	movq	%rax, (%rbx)
	movq	_MMC_VDD_32_33@GOTPCREL(%rip), %rax
	movq	_MMC_VDD_33_34@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	8(%r12), %rdi
	callq	_spin_lock_init
	addq	$4, %r12
	movq	_wbsd_reset_ignore@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [128,65536,65536,4087]
	movups	%xmm0, 12(%rbx)
	movl	$65536, 28(%rbx)                ## imm = 0x10000
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wbsd_ops,4,2                   ## @wbsd_ops
	.comm	_MMC_VDD_32_33,4,2              ## @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ## @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_wbsd_reset_ignore,4,2          ## @wbsd_reset_ignore
	.no_dead_strip	_wbsd_alloc_mmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wbsd_alloc_mmc
lCPI0_0:
	.long	375000                          ; 0x5b8d8
	.long	24000000                        ; 0x16e3600
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	128                             ; 0x80
	.long	65536                           ; 0x10000
	.long	65536                           ; 0x10000
	.long	4087                            ; 0xff7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wbsd_alloc_mmc:                        ; @wbsd_alloc_mmc
	.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	x19, x0
	mov	w0, #24
	mov	x1, x19
	bl	_mmc_alloc_host
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	str	x20, [x0, #16]
	mov	w8, #-1
Lloh0:
	adrp	x9, _wbsd_ops@GOTPAGE
Lloh1:
	ldr	x9, [x9, _wbsd_ops@GOTPAGEOFF]
	str	w8, [x0], #8
	str	x9, [x20, #40]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh4:
	adrp	x8, _MMC_VDD_32_33@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMC_VDD_32_33@GOTPAGEOFF]
	str	d0, [x20]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MMC_VDD_33_34@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMC_VDD_33_34@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh10:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	bl	_spin_lock_init
	add	x0, x21, #4
Lloh13:
	adrp	x8, _wbsd_reset_ignore@GOTPAGE
Lloh14:
	ldr	x8, [x8, _wbsd_reset_ignore@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
Lloh16:
	adrp	x8, lCPI0_1@PAGE
Lloh17:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x20, #12]
	mov	w8, #65536
	str	w8, [x20, #28]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wbsd_ops,4,2                   ; @wbsd_ops
	.comm	_MMC_VDD_32_33,4,2              ; @MMC_VDD_32_33
	.comm	_MMC_VDD_33_34,4,2              ; @MMC_VDD_33_34
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_wbsd_reset_ignore,4,2          ; @wbsd_reset_ignore
	.no_dead_strip	_wbsd_alloc_mmc
.subsections_via_symbols
