	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_read_cis
_sdio_read_cis:                         ## @sdio_read_cis
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movb	(%r13), %al
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	movzbl	%al, %edi
	callq	_SDIO_FBR_BASE
	movq	_SDIO_FBR_CIS@GOTPCREL(%rip), %rbx
	addl	(%rbx), %eax
	leaq	-43(%rbp), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.4:
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movb	(%r13), %al
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movzbl	-43(%rbp), %r15d
	movzbl	%al, %edi
	callq	_SDIO_FBR_BASE
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %ecx
	addl	%eax, %ecx
	incl	%ecx
	leaq	-43(%rbp), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.8:
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:
	movb	(%r13), %al
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movzbl	-43(%rbp), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movzbl	%al, %edi
	callq	_SDIO_FBR_BASE
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %ecx
	addl	%eax, %ecx
	addl	$2, %ecx
	leaq	-43(%rbp), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.12:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	leaq	8(%r13), %rax
	testq	%r13, %r13
	cmoveq	%r14, %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_36
LBB0_15:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	shll	$8, %eax
	orl	%r15d, %eax
	movzbl	-43(%rbp), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	leaq	-42(%rbp), %r15
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	%ebx, %r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	-42(%rbp), %r15
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movzbl	-41(%rbp), %eax
	addl	%eax, %ecx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
                                        ## kill: def $ecx killed $ecx def $rcx
	testl	%r12d, %r12d
	jne	LBB0_34
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rcx, %rbx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_38
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	leal	1(%rbx), %ecx
	xorl	%r12d, %r12d
	movb	-42(%rbp), %al
	testb	%al, %al
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$-1, %al
	je	LBB0_34
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	leaq	-41(%rbp), %r9
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_38
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movzbl	-41(%rbp), %edi
	cmpl	$255, %edi
	je	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	addl	$24, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_39
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rcx
	addl	$2, %ecx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpb	$0, -41(%rbp)
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r15
	addl	%ebx, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	addq	%rbx, %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	incq	%rbx
	movzbl	-41(%rbp), %eax
	cmpq	%rax, %rbx
	movq	%r15, %rcx
	jb	LBB0_27
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_cis_tpl_list@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movzbl	-42(%rbp), %r9d
	movzbl	-41(%rbp), %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	pushq	%rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	pushq	(%rax)
	callq	_cis_tpl_parse
	addq	$16, %rsp
	movl	%eax, %ebx
	xorl	%eax, %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ebx, %ecx
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_16
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	$16, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	$0, 16(%rsi)
	movb	-42(%rbp), %cl
	movb	%cl, 8(%rsi)
	movb	-41(%rbp), %cl
	movb	%cl, 9(%rsi)
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rsi, (%rcx)
	cmpl	%eax, %ebx
	jne	LBB0_17
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	8(%r14), %edi
	movq	%rdx, %rbx
	callq	_mmc_hostname
	movzbl	-42(%rbp), %edx
	movzbl	-41(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn_ratelimited
	movq	%rbx, %rdx
	jmp	LBB0_17
LBB0_33:
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_34
LBB0_38:
	movl	%eax, %r12d
LBB0_34:
	testq	%r13, %r13
	je	LBB0_36
## %bb.35:
	movq	(%r14), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_36:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SDIO_FBR_CIS,4,2               ## @SDIO_FBR_CIS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CIS"

	.comm	_cis_tpl_list,4,2               ## @cis_tpl_list
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"%s: queuing unknown CIS tuple 0x%02x (%u bytes)\n"

	.no_dead_strip	_sdio_read_cis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_read_cis
_sdio_read_cis:                         ; @sdio_read_cis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldrb	w0, [x20]
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_SDIO_FBR_BASE
Lloh0:
	adrp	x22, _SDIO_FBR_CIS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDIO_FBR_CIS@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w3, w0, w8
	add	x5, sp, #15
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	mov	x24, x0
	cbnz	w0, LBB0_36
; %bb.4:
	cbz	x20, LBB0_6
; %bb.5:
	ldrb	w0, [x20]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldrb	w21, [sp, #15]
	bl	_SDIO_FBR_BASE
	ldr	w8, [x22]
	add	w8, w0, w8
	add	w3, w8, #1
	add	x5, sp, #15
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	mov	x24, x0
	cbnz	w0, LBB0_36
; %bb.8:
	cbz	x20, LBB0_10
; %bb.9:
	ldrb	w0, [x20]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldrb	w25, [sp, #15]
	bl	_SDIO_FBR_BASE
	ldr	w8, [x22]
	add	w8, w0, w8
	add	w3, w8, #2
	add	x5, sp, #15
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	mov	x24, x0
	cbnz	w0, LBB0_36
; %bb.12:
	add	x8, x20, #8
	cmp	x20, #0
	csel	x23, x19, x8, eq
	ldr	x8, [x23]
	cbz	x8, LBB0_15
; %bb.13:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_36
LBB0_15:
	bfi	w21, w25, #8, #8
	ldrb	w8, [sp, #15]
	bfi	w21, w8, #16, #8
Lloh4:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x25
	bl	_kfree
	mov	x26, x23
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w8, w21, #2
	ldrb	w9, [sp, #13]
	add	w3, w8, w9
	mov	x23, x26
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x21, x3
	cbnz	w24, LBB0_34
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	add	x5, sp, #14
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	bl	_mmc_io_rw_direct
	mov	x24, x0
	cbnz	w0, LBB0_34
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w3, w21, #1
	ldrb	w8, [sp, #14]
	cbz	w8, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w8, #255
	b.eq	LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x5, sp, #13
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_37
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w8, [sp, #13]
	cmp	w8, #255
	b.eq	LBB0_38
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w0, w8, #24
	ldr	w1, [x27]
	bl	_kmalloc
	cbz	x0, LBB0_39
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x25, x0
	ldrb	w8, [sp, #13]
	cbz	w8, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x26, #0
	add	w28, w21, #2
LBB0_27:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w3, w28, w26
	ldr	x8, [x25]
	add	x5, x8, x26
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	add	x26, x26, #1
	ldrb	w8, [sp, #13]
	cmp	x26, x8
	b.lo	LBB0_27
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=1
Lloh8:
	adrp	x8, _cis_tpl_list@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cis_tpl_list@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x4, x0
	ldrb	w5, [sp, #14]
	ldr	x6, [x25]
	ldrb	w7, [sp, #13]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	bl	_cis_tpl_parse
	mov	x24, x0
Lloh11:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w8, w8
	cmn	w0, w9
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_16
; %bb.30:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x26, x25
	str	xzr, [x26, #16]!
	ldrb	w9, [sp, #14]
	strb	w9, [x25, #8]
	ldrb	w9, [sp, #13]
	strb	w9, [x25, #9]
	str	x25, [x23]
	cmp	w24, w8
	b.ne	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x19, #8]
	bl	_mmc_hostname
	mov	x1, x0
	ldrb	w2, [sp, #14]
	ldrb	w3, [sp, #13]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn_ratelimited
LBB0_32:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w24, #0
	b	LBB0_17
LBB0_33:
	mov	x24, x0
	mov	x0, x25
	bl	_kfree
LBB0_34:
	cbz	x20, LBB0_36
; %bb.35:
	ldr	x8, [x19]
	str	x8, [x23]
LBB0_36:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_37:
	mov	x24, x0
	b	LBB0_34
LBB0_38:
	mov	w24, #0
	b	LBB0_34
LBB0_39:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SDIO_FBR_CIS,4,2               ; @SDIO_FBR_CIS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CIS"

	.comm	_cis_tpl_list,4,2               ; @cis_tpl_list
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"%s: queuing unknown CIS tuple 0x%02x (%u bytes)\n"

	.no_dead_strip	_sdio_read_cis
.subsections_via_symbols
