	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsdt_load_file                 ## -- Begin function dsdt_load_file
	.p2align	4, 0x90
_dsdt_load_file:                        ## @dsdt_load_file
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	_acpi_mem_fd@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_2:
	movq	_maplist@GOTPCREL(%rip), %rdi
	callq	_LIST_INIT
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_4:
	movl	-24(%rbp), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_6:
	movq	_ACPI_SIG_DSDT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_acpi_checksum
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmoveq	%rbx, %rax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_acpi_mem_fd,4,2                ## @acpi_mem_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opening %s"

	.comm	_maplist,4,2                    ## @maplist
L_.str.1:                               ## @.str.1
	.asciz	"fstat %s"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
L_.str.2:                               ## @.str.2
	.asciz	"mmap %s"

	.comm	_ACPI_SIG_DSDT,4,2              ## @ACPI_SIG_DSDT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsdt_load_file                 ; -- Begin function dsdt_load_file
	.p2align	2
_dsdt_load_file:                        ; @dsdt_load_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
Lloh3:
	adrp	x20, _acpi_mem_fd@GOTPAGE
Lloh4:
	ldr	x20, [x20, _acpi_mem_fd@GOTPAGEOFF]
	str	w0, [x20]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_2:
Lloh7:
	adrp	x0, _maplist@GOTPAGE
Lloh8:
	ldr	x0, [x0, _maplist@GOTPAGEOFF]
	bl	_LIST_INIT
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_4:
Lloh11:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
	ldr	w1, [sp, #8]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	ldr	w4, [x20]
	mov	w0, #0
	mov	w5, #0
	bl	_mmap
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_6:
Lloh19:
	adrp	x8, _ACPI_SIG_DSDT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ACPI_SIG_DSDT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, #0
	b	LBB0_9
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_acpi_checksum
	cmp	x0, #0
	csel	x0, x20, xzr, eq
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_acpi_mem_fd,4,2                ; @acpi_mem_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opening %s"

	.comm	_maplist,4,2                    ; @maplist
l_.str.1:                               ; @.str.1
	.asciz	"fstat %s"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
l_.str.2:                               ; @.str.2
	.asciz	"mmap %s"

	.comm	_ACPI_SIG_DSDT,4,2              ; @ACPI_SIG_DSDT
.subsections_via_symbols
