	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_arasan_add_host
_sdhci_arasan_add_host:                 ## @sdhci_arasan_add_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	8(%rdi), %r14
	cmpl	$0, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%r14, %rdi
	callq	_sdhci_setup_host
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_SDHCI_ARASAN_CQE_BASE_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	16(%r14), %rcx
	movq	%rcx, 16(%rax)
	movq	_sdhci_arasan_cqhci_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_SDHCI_USE_64_BIT_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%r14), %edx
	je	LBB0_7
## %bb.6:
	movq	_CQHCI_TASK_DESC_SZ_128@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_7:
	movq	8(%r14), %rsi
	movq	%rax, %rdi
	callq	_cqhci_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:
	movq	%r14, %rdi
	callq	___sdhci_add_host
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdhci_add_host                 ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_sdhci_cleanup_host
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SDHCI_ARASAN_CQE_BASE_ADDR,8,3 ## @SDHCI_ARASAN_CQE_BASE_ADDR
	.comm	_sdhci_arasan_cqhci_ops,4,2     ## @sdhci_arasan_cqhci_ops
	.comm	_SDHCI_USE_64_BIT_DMA,4,2       ## @SDHCI_USE_64_BIT_DMA
	.comm	_CQHCI_TASK_DESC_SZ_128,4,2     ## @CQHCI_TASK_DESC_SZ_128
	.no_dead_strip	_sdhci_arasan_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_arasan_add_host
_sdhci_arasan_add_host:                 ; @sdhci_arasan_add_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
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_sdhci_setup_host
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _SDHCI_ARASAN_CQE_BASE_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_ARASAN_CQE_BASE_ADDR@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x9
Lloh6:
	adrp	x9, _sdhci_arasan_cqhci_ops@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sdhci_arasan_cqhci_ops@GOTPAGEOFF]
	stp	x9, x8, [x0, #8]
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _SDHCI_USE_64_BIT_DMA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDHCI_USE_64_BIT_DMA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ands	w2, w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _CQHCI_TASK_DESC_SZ_128@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CQHCI_TASK_DESC_SZ_128@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_5:
	ldr	x1, [x19, #8]
	bl	_cqhci_init
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	___sdhci_add_host
	mov	x20, x0
	cbnz	w0, LBB0_9
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdhci_add_host
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_sdhci_cleanup_host
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SDHCI_ARASAN_CQE_BASE_ADDR,8,3 ; @SDHCI_ARASAN_CQE_BASE_ADDR
	.comm	_sdhci_arasan_cqhci_ops,4,2     ; @sdhci_arasan_cqhci_ops
	.comm	_SDHCI_USE_64_BIT_DMA,4,2       ; @SDHCI_USE_64_BIT_DMA
	.comm	_CQHCI_TASK_DESC_SZ_128,4,2     ; @CQHCI_TASK_DESC_SZ_128
	.no_dead_strip	_sdhci_arasan_add_host
.subsections_via_symbols
