	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdt_from_rsdt                  ## -- Begin function sdt_from_rsdt
	.p2align	4, 0x90
_sdt_from_rsdt:                         ## @sdt_from_rsdt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %rax
	addq	$-8, %rax
	movq	_addr_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_13
## %bb.1:
	xorl	%edx, %edx
	divq	%rsi
	testl	%eax, %eax
	jg	LBB0_2
	jmp	LBB0_14
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_14
LBB0_2:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	cmpl	$4, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_le32toh
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_le64toh
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_acpi_map_sdt
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %r15
	movl	$0, %eax
	cmoveq	%rax, %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %r12d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%r14, %rbx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_addr_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_3
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_acpi_checksum
	testq	%rax, %rax
	je	LBB0_15
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_errx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_addr_size,4,2                  ## @addr_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSDT entry %d is corrupt"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdt_from_rsdt                  ; -- Begin function sdt_from_rsdt
	.p2align	2
_sdt_from_rsdt:                         ; @sdt_from_rsdt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldrsw	x8, [x0]
	sub	x9, x8, #8
Lloh0:
	adrp	x24, _addr_size@GOTPAGE
Lloh1:
	ldr	x24, [x24, _addr_size@GOTPAGEOFF]
	ldrsw	x8, [x24]
	udiv	x9, x9, x8
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x19, #0
	and	x25, x9, #0xffffffff
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	w0, [x9, x19, lsl #2]
	cmp	w8, #4
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_le32toh
	cbnz	x0, LBB0_5
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_le64toh
	cbz	x0, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_acpi_map_sdt
	mov	x23, x0
	cbz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x22, x23
	csel	x22, xzr, x22, eq
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x23, #4]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, #0
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	cmp	x19, x25
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	b	LBB0_2
LBB0_11:
	mov	x23, #0
LBB0_12:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w1, [x23]
	mov	x0, x23
	bl	_acpi_checksum
	cbz	x0, LBB0_12
; %bb.14:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_addr_size,4,2                  ; @addr_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSDT entry %d is corrupt"

.subsections_via_symbols
