	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sdio_card_info
_get_sdio_card_info:                    ## @get_sdio_card_info
	.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, %r14
	movq	%rdi, %r15
	callq	_sdio_get_common_cis_addr
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%r14), %rcx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_sdio_func_read_cis
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	$-7, %rax
	movl	$12, %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	8(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_SD_IO_FBR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	imull	%ecx, %r14d
	leal	9(%r14), %edx
	leal	10(%r14), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	leaq	-44(%rbp), %rcx
	callq	_sdio_read_1
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_bailout
	addl	$11, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	leaq	-44(%rbp), %rcx
	callq	_sdio_read_1
	shll	$8, %eax
	orl	%eax, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	-44(%rbp), %rcx
	callq	_sdio_read_1
	shll	$16, %eax
	orl	%eax, %r12d
	movq	8(%r14), %rcx
	addq	%r13, %rcx
	movq	%r15, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_sdio_func_read_cis
	movq	8(%r14), %rax
	movl	(%rax,%r13), %edx
	movl	4(%rax,%r13), %ecx
	movl	8(%rax,%r13), %r8d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%r14), %rax
	cmpl	$0, (%rax,%r13)
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	(%r14)
	addq	$12, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	jne	LBB0_1
	jmp	LBB0_4
LBB0_2:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addl	$8, %esi
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"F0: Vendor 0x%04X product 0x%04X max block size %d bytes\n"

	.comm	_SD_IO_FBR_START,4,2            ## @SD_IO_FBR_START
L_.str.1:                               ## @.str.1
	.asciz	"F%d: Vendor 0x%04X product 0x%04X max block size %d bytes\n"

L_.str.2:                               ## @.str.2
	.asciz	"F%d doesn't exist\n"

	.no_dead_strip	_get_sdio_card_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sdio_card_info
_get_sdio_card_info:                    ; @get_sdio_card_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	bl	_sdio_get_common_cis_addr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x3, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_sdio_func_read_cis
	ldr	x8, [x19, #8]
	ldp	w1, w9, [x8]
	ldr	w8, [x8, #8]
	stp	x9, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x26, #0
	mov	w21, #1
Lloh2:
	adrp	x27, _SD_IO_FBR_START@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SD_IO_FBR_START@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	mul	w25, w8, w21
	add	w2, w25, #9
	add	w23, w25, #10
	add	x3, sp, #28
	mov	x0, x20
	mov	w1, #0
	bl	_sdio_read_1
	mov	x24, x0
	ldr	w0, [sp, #28]
	bl	_bailout
	add	w25, w25, #11
	add	x3, sp, #28
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_sdio_read_1
	orr	w23, w24, w0, lsl #8
	add	x3, sp, #28
	mov	x0, x20
	mov	w1, #0
	mov	x2, x25
	bl	_sdio_read_1
	orr	w2, w23, w0, lsl #16
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	add	x3, x8, #12
	mov	x0, x20
	mov	x1, x21
	bl	_sdio_func_read_cis
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	ldp	w9, w10, [x8, #12]
	ldr	w8, [x8, #20]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
	mov	x0, x22
	mov	x1, x21
	bl	_printf
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	w21, w21, #1
	add	x26, x26, #12
	cmp	x26, #84
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_printf
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"F0: Vendor 0x%04X product 0x%04X max block size %d bytes\n"

	.comm	_SD_IO_FBR_START,4,2            ; @SD_IO_FBR_START
l_.str.1:                               ; @.str.1
	.asciz	"F%d: Vendor 0x%04X product 0x%04X max block size %d bytes\n"

l_.str.2:                               ; @.str.2
	.asciz	"F%d doesn't exist\n"

	.no_dead_strip	_get_sdio_card_info
.subsections_via_symbols
