	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_init_func
_sdio_init_func:                        ## @sdio_init_func
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_SDIO_MAX_FUNCS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setb	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_sdio_alloc_func
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	%r12d, (%r15)
	movq	_MMC_QUIRK_NONSTD_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.7:
	movq	8(%r15), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 24(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r15)
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
LBB0_8:
	movq	8(%r14), %rax
	decl	%r12d
	movq	%r15, (%rax,%r12,8)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	%r15, %rdi
	callq	_sdio_read_fbr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_sdio_read_func_cis
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_sdio_remove_func
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SDIO_MAX_FUNCS,4,2             ## @SDIO_MAX_FUNCS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_QUIRK_NONSTD_SDIO,4,2      ## @MMC_QUIRK_NONSTD_SDIO
	.no_dead_strip	_sdio_init_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_init_func
_sdio_init_func:                        ; @sdio_init_func
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SDIO_MAX_FUNCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDIO_MAX_FUNCS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, lo
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_2:
	mov	x0, x22
	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:
	mov	x0, x20
	bl	_sdio_alloc_func
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	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
	b	_PTR_ERR
LBB0_5:
	str	w19, [x21]
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _MMC_QUIRK_NONSTD_SDIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_QUIRK_NONSTD_SDIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #8]
	str	w9, [x21, #24]
	ldr	d0, [x8]
	str	d0, [x21, #16]
LBB0_7:
	mov	w22, #0
	ldr	x8, [x20, #8]
	sub	w9, w19, #1
	str	x21, [x8, w9, uxtw #3]
	b	LBB0_2
LBB0_8:
	mov	x0, x21
	bl	_sdio_read_fbr
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_sdio_read_func_cis
	mov	x22, x0
	cbz	w0, LBB0_7
LBB0_10:
	mov	x0, x21
	bl	_sdio_remove_func
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDIO_MAX_FUNCS,4,2             ; @SDIO_MAX_FUNCS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_QUIRK_NONSTD_SDIO,4,2      ; @MMC_QUIRK_NONSTD_SDIO
	.no_dead_strip	_sdio_init_func
.subsections_via_symbols
