	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_crom
_show_crom:                             ## @show_crom
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%rbx), %esi
	cmpl	$1, %esi
	je	LBB0_4
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.3:
	leaq	L_str.15(%rip), %rdi
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_6:
	leaq	4(%rbx), %r15
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_crom_crc
	movslq	8(%rbx), %rcx
	cmpq	%rcx, %rax
	leaq	L_str.14(%rip), %r12
	leaq	L_str.12(%rip), %r14
	movq	%r14, %rdi
	cmoveq	%r12, %rdi
	callq	_puts
	movq	%r15, %rdi
	callq	_parse_bus_info_block
	leaq	-320(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_crom_init_context
	movq	-312(%rbp), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.8(%rip), %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	_crom_crc
	movslq	4(%rbx), %rcx
	cmpq	%rcx, %rax
	cmoveq	%r12, %r14
	movq	%r14, %rdi
	callq	_puts
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.9:
	cmpl	$0, -320(%rbp)
	js	LBB0_15
## %bb.10:
	leaq	-320(%rbp), %r12
	leaq	-304(%rbp), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %r8d
	movl	4(%rbx), %esi
	movq	_CSRTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	sarl	$6, %eax
	cltq
	leaq	L_.str(%rip), %rcx
	movsbl	(%rax,%rcx), %edx
	movq	_CSRKEY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%esi, %ecx
	movq	%r14, (%rsp)
	leaq	L_.str.10(%rip), %rdi
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, %rdi
	callq	_crom_next
	cmpl	$0, -320(%rbp)
	js	LBB0_15
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_crom_desc
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_crom_get
	movq	%rax, %rbx
	cmpl	$0, -320(%rbp)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$9, %edi
	callq	_putchar
	incl	%r15d
	cmpl	-320(%rbp), %r15d
	jl	LBB0_13
	jmp	LBB0_14
LBB0_7:
	leaq	L_str.11(%rip), %rdi
	callq	_puts
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICLD"

L_.str.1:                               ## @.str.1
	.asciz	"first quad: 0x%08x "

L_.str.3:                               ## @.str.3
	.asciz	"verndor ID: 0x%06x\n"

L_.str.4:                               ## @.str.4
	.asciz	"info_len=%d crc_len=%d crc=0x%04x"

L_.str.8:                               ## @.str.8
	.asciz	"root_directory: len=0x%04x(%d) crc=0x%04x"

L_.str.10:                              ## @.str.10
	.asciz	"%02x(%c:%02x) %06x %s: %s\n"

	.comm	_CSRTYPE_MASK,4,2               ## @CSRTYPE_MASK
	.comm	_CSRKEY_MASK,4,2                ## @CSRKEY_MASK
L_str.11:                               ## @str.11
	.asciz	"no root directory - giving up"

L_str.12:                               ## @str.12
	.asciz	"(NG)"

L_str.14:                               ## @str.14
	.asciz	"(OK)"

L_str.15:                               ## @str.15
	.asciz	"(Invalid Configuration ROM)"

	.no_dead_strip	_show_crom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_crom
_show_crom:                             ; @show_crom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #432
	.cfi_def_cfa_offset 432
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #352]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #368]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #384]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #400]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #416]            ; 16-byte Folded Spill
	add	x29, sp, #416
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x0]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_5
; %bb.2:
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.3:
Lloh8:
	adrp	x0, l_str.15@PAGE
Lloh9:
	add	x0, x0, l_str.15@PAGEOFF
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	b	_puts
LBB0_4:
	mov	w8, #1
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	b	LBB0_14
LBB0_5:
	mov	x20, x19
	ldr	w9, [x20, #4]!
	ldr	w10, [x19, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	w1, [x20]
	mov	x0, x20
	bl	_crom_crc
	ldrsw	x8, [x19, #8]
Lloh14:
	adrp	x21, l_str.12@PAGE
Lloh15:
	add	x21, x21, l_str.12@PAGEOFF
Lloh16:
	adrp	x22, l_str.14@PAGE
Lloh17:
	add	x22, x22, l_str.14@PAGEOFF
	cmp	x0, x8
	csel	x0, x22, x21, eq
	bl	_puts
	mov	x0, x20
	bl	_parse_bus_info_block
	add	x0, sp, #56
	mov	x1, x19
	bl	_crom_init_context
	ldr	x8, [sp, #64]
	ldr	x19, [x8]
	cbz	x19, LBB0_13
; %bb.6:
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp, #8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.8@PAGE
Lloh19:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_crom_crc
	ldrsw	x8, [x19, #4]
	cmp	x0, x8
	csel	x0, x22, x21, eq
	bl	_puts
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.7:
	ldr	w8, [sp, #56]
	tbnz	w8, #31, LBB0_14
; %bb.8:
	add	x22, sp, #72
Lloh20:
	adrp	x23, _CSRTYPE_MASK@GOTPAGE
Lloh21:
	ldr	x23, [x23, _CSRTYPE_MASK@GOTPAGEOFF]
Lloh22:
	adrp	x24, l_.str@PAGE
Lloh23:
	add	x24, x24, l_.str@PAGEOFF
Lloh24:
	adrp	x25, _CSRKEY_MASK@GOTPAGE
Lloh25:
	ldr	x25, [x25, _CSRKEY_MASK@GOTPAGEOFF]
Lloh26:
	adrp	x19, l_.str.10@PAGE
Lloh27:
	add	x19, x19, l_.str.10@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	ldp	w10, w9, [x21]
	and	w8, w8, w9
	asr	w8, w8, #6
	ldrsb	x8, [x24, w8, sxtw]
	ldr	w11, [x25]
	and	w11, w11, w9
	stp	x20, x22, [sp, #32]
	stp	x11, x10, [sp, #16]
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_printf
	add	x0, sp, #56
	bl	_crom_next
	ldr	w8, [sp, #56]
	tbnz	w8, #31, LBB0_14
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x0, sp, #56
	add	x1, sp, #72
	mov	w2, #256
	bl	_crom_desc
	mov	x20, x0
	add	x0, sp, #56
	bl	_crom_get
	mov	x21, x0
	ldr	w8, [sp, #56]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w26, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #9
	bl	_putchar
	add	w26, w26, #1
	ldr	w8, [sp, #56]
	cmp	w26, w8
	b.lt	LBB0_12
	b	LBB0_9
LBB0_13:
Lloh28:
	adrp	x0, l_str.11@PAGE
Lloh29:
	add	x0, x0, l_str.11@PAGEOFF
	bl	_puts
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICLD"

l_.str.1:                               ; @.str.1
	.asciz	"first quad: 0x%08x "

l_.str.3:                               ; @.str.3
	.asciz	"verndor ID: 0x%06x\n"

l_.str.4:                               ; @.str.4
	.asciz	"info_len=%d crc_len=%d crc=0x%04x"

l_.str.8:                               ; @.str.8
	.asciz	"root_directory: len=0x%04x(%d) crc=0x%04x"

l_.str.10:                              ; @.str.10
	.asciz	"%02x(%c:%02x) %06x %s: %s\n"

	.comm	_CSRTYPE_MASK,4,2               ; @CSRTYPE_MASK
	.comm	_CSRKEY_MASK,4,2                ; @CSRKEY_MASK
l_str.11:                               ; @str.11
	.asciz	"no root directory - giving up"

l_str.12:                               ; @str.12
	.asciz	"(NG)"

l_str.14:                               ; @str.14
	.asciz	"(OK)"

l_str.15:                               ; @str.15
	.asciz	"(Invalid Configuration ROM)"

	.no_dead_strip	_show_crom
.subsections_via_symbols
