	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivrs_hdr_iterate_tbl
_ivrs_hdr_iterate_tbl:                  ## @ivrs_hdr_iterate_tbl
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_ACPI_SIG_IVRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$1, %esi
	callq	_AcpiGetTable
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.2:
	leaq	8(%rax), %rbx
	addq	%rax, %r13
	cmpq	%r13, %rbx
	jae	LBB0_11
## %bb.3:
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rsi
	leaq	(%rbx,%rsi,4), %rax
	cmpq	%r13, %rax
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %esi
	leal	-131(%rsi), %eax
	cmpl	$3, %eax
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	ja	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%r15
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%rbx), %rax
	leaq	(%rbx,%rax,4), %rbx
	cmpq	%r13, %rbx
	jb	LBB0_4
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_printf
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_printf
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SIG_IVRS,4,2              ## @ACPI_SIG_IVRS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AMD-Vi:IVHD/IVMD is corrupted, length : %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"AMD-Vi:Not IVHD/IVMD type(%d)"

	.no_dead_strip	_ivrs_hdr_iterate_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivrs_hdr_iterate_tbl
_ivrs_hdr_iterate_tbl:                  ; @ivrs_hdr_iterate_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ACPI_SIG_IVRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_SIG_IVRS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #1
	bl	_AcpiGetTable
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	cmp	x9, #0
	add	x21, x8, #8
	add	x23, x8, x9
	ccmp	x21, x23, #2, ne
	b.lo	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
Lloh3:
	adrp	x22, l_.str.1@PAGE
Lloh4:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x1, [x21]
	add	x8, x21, x1, lsl #2
	cmp	x8, x23
	b.hi	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #4]
	sub	w8, w1, #131
	cmp	w8, #3
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w1, #128
	cmp	w8, #2
	b.hi	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x19
	blr	x20
	cbz	w0, LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x21]
	add	x21, x21, x8, lsl #2
	cmp	x21, x23
	b.lo	LBB0_4
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_printf
	b	LBB0_8
LBB0_10:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SIG_IVRS,4,2              ; @ACPI_SIG_IVRS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AMD-Vi:IVHD/IVMD is corrupted, length : %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"AMD-Vi:Not IVHD/IVMD type(%d)"

	.no_dead_strip	_ivrs_hdr_iterate_tbl
.subsections_via_symbols
