	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_alloc_host               ## -- Begin function sdhci_alloc_host
	.p2align	4, 0x90
_sdhci_alloc_host:                      ## @sdhci_alloc_host
	.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	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	addl	$40, %ebx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_mmc_alloc_host
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rbx, 32(%rax)
	movq	_sdhci_ops@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	28(%rax), %rdx
	movl	%ecx, 28(%rax)
	movq	%rdx, (%rbx)
	movq	_SDHCI_SIGNALING_330@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_SDHCI_CQE_INT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_SDHCI_CQE_INT_ERR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	$-1, (%rax)
	movq	_MAX_TUNING_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_SDHCI_DEFAULT_BOUNDARY_ARG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_SDHCI_MAX_SEGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	1(%rcx,%rcx), %ecx
	movl	%ecx, 4(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sdhci_ops,4,2                  ## @sdhci_ops
	.comm	_SDHCI_SIGNALING_330,4,2        ## @SDHCI_SIGNALING_330
	.comm	_SDHCI_CQE_INT_MASK,4,2         ## @SDHCI_CQE_INT_MASK
	.comm	_SDHCI_CQE_INT_ERR_MASK,4,2     ## @SDHCI_CQE_INT_ERR_MASK
	.comm	_MAX_TUNING_LOOP,4,2            ## @MAX_TUNING_LOOP
	.comm	_SDHCI_DEFAULT_BOUNDARY_ARG,4,2 ## @SDHCI_DEFAULT_BOUNDARY_ARG
	.comm	_SDHCI_MAX_SEGS,4,2             ## @SDHCI_MAX_SEGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_alloc_host               ; -- Begin function sdhci_alloc_host
	.p2align	2
_sdhci_alloc_host:                      ; @sdhci_alloc_host
	.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, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	add	w0, w19, #40
	mov	x1, x20
	bl	_mmc_alloc_host
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_mmc_priv
	str	x19, [x0, #32]
Lloh0:
	adrp	x8, _sdhci_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdhci_ops@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDHCI_SIGNALING_330@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCI_SIGNALING_330@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SDHCI_CQE_INT_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SDHCI_CQE_INT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _SDHCI_CQE_INT_ERR_MASK@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SDHCI_CQE_INT_ERR_MASK@GOTPAGEOFF]
	stp	w10, w9, [x0, #20]
Lloh11:
	ldr	w9, [x11]
	mov	w10, #-1
	str	w10, [x0]
Lloh12:
	adrp	x10, _MAX_TUNING_LOOP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MAX_TUNING_LOOP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #12]
Lloh15:
	adrp	x9, _SDHCI_MAX_SEGS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SDHCI_MAX_SEGS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	w10, #1
	bfi	w10, w9, #1, #31
Lloh18:
	adrp	x9, _SDHCI_DEFAULT_BOUNDARY_ARG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDHCI_DEFAULT_BOUNDARY_ARG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w10, w9, [x0, #4]
	mov	x9, x0
	str	w8, [x9, #28]!
	str	x9, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sdhci_ops,4,2                  ; @sdhci_ops
	.comm	_SDHCI_SIGNALING_330,4,2        ; @SDHCI_SIGNALING_330
	.comm	_SDHCI_CQE_INT_MASK,4,2         ; @SDHCI_CQE_INT_MASK
	.comm	_SDHCI_CQE_INT_ERR_MASK,4,2     ; @SDHCI_CQE_INT_ERR_MASK
	.comm	_MAX_TUNING_LOOP,4,2            ; @MAX_TUNING_LOOP
	.comm	_SDHCI_DEFAULT_BOUNDARY_ARG,4,2 ; @SDHCI_DEFAULT_BOUNDARY_ARG
	.comm	_SDHCI_MAX_SEGS,4,2             ; @SDHCI_MAX_SEGS
.subsections_via_symbols
