	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_get_common_cis_addr       ## -- Begin function sdio_get_common_cis_addr
	.p2align	4, 0x90
_sdio_get_common_cis_addr:              ## @sdio_get_common_cis_addr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_SD_IO_CCCR_CISPTR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	-44(%rbp), %r15
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_sdio_read_1
	movl	%eax, %r12d
	movq	(%r14), %rdx
	incq	%rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_sdio_read_1
	movl	%eax, %ebx
	shll	$8, %ebx
	orl	%r12d, %ebx
	movq	(%r14), %rdx
	addq	$2, %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_sdio_read_1
	shll	$16, %eax
	orl	%ebx, %eax
	movq	_SD_IO_CIS_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_2
## %bb.1:
	movq	_SD_IO_CIS_SIZE@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warn
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_IO_CCCR_CISPTR,8,3          ## @SD_IO_CCCR_CISPTR
	.comm	_SD_IO_CIS_START,4,2            ## @SD_IO_CIS_START
	.comm	_SD_IO_CIS_SIZE,4,2             ## @SD_IO_CIS_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad CIS address: %04X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_get_common_cis_addr       ; -- Begin function sdio_get_common_cis_addr
	.p2align	2
_sdio_get_common_cis_addr:              ; @sdio_get_common_cis_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x21, _SD_IO_CCCR_CISPTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SD_IO_CCCR_CISPTR@GOTPAGEOFF]
	ldr	x2, [x21]
	add	x3, sp, #12
	mov	w1, #0
	bl	_sdio_read_1
	mov	x20, x0
	ldr	x8, [x21]
	add	x2, x8, #1
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_sdio_read_1
	orr	w20, w20, w0, lsl #8
	ldr	x8, [x21]
	add	x2, x8, #2
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_sdio_read_1
	orr	w1, w20, w0, lsl #16
Lloh2:
	adrp	x8, _SD_IO_CIS_START@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SD_IO_CIS_START@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w1, w8
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _SD_IO_CIS_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SD_IO_CIS_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w1, w8
	b.le	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w1, #0
LBB0_3:
	mov	x0, x1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_IO_CCCR_CISPTR,8,3          ; @SD_IO_CCCR_CISPTR
	.comm	_SD_IO_CIS_START,4,2            ; @SD_IO_CIS_START
	.comm	_SD_IO_CIS_SIZE,4,2             ; @SD_IO_CIS_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad CIS address: %04X\n"

.subsections_via_symbols
