	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_create_crat_image_acpi     ## -- Begin function kfd_create_crat_image_acpi
	.p2align	4, 0x90
_kfd_create_crat_image_acpi:            ## @kfd_create_crat_image_acpi
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, (%rdi)
	movq	_CRAT_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rdx
	xorl	%esi, %esi
	callq	_acpi_get_table
	movq	%rax, %r12
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r12, %rdi
	callq	_acpi_format_exception
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ignore_crat@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	-40(%rbp), %rdi
	movq	(%rdi), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, (%r15)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRAT_SIGNATURE,4,2             ## @CRAT_SIGNATURE
	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRAT table not found\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
L_.str.1:                               ## @.str.1
	.asciz	"CRAT table error: %s\n"

	.comm	_ignore_crat,8,3                ## @ignore_crat
L_.str.2:                               ## @.str.2
	.asciz	"CRAT table disabled by module option\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_create_crat_image_acpi     ; -- Begin function kfd_create_crat_image_acpi
	.p2align	2
_kfd_create_crat_image_acpi:            ; @kfd_create_crat_image_acpi
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x0]
Lloh0:
	adrp	x8, _CRAT_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRAT_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_acpi_get_table
Lloh3:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_3:
Lloh8:
	adrp	x8, _ENODATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_acpi_format_exception
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh14:
	adrp	x8, _ignore_crat@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ignore_crat@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	b	LBB0_3
LBB0_11:
	ldr	x0, [sp, #8]
	ldr	x1, [x0]
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_kmemdup
	cbz	x0, LBB0_13
; %bb.12:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_8
LBB0_13:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRAT_SIGNATURE,4,2             ; @CRAT_SIGNATURE
	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRAT table not found\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
l_.str.1:                               ; @.str.1
	.asciz	"CRAT table error: %s\n"

	.comm	_ignore_crat,8,3                ; @ignore_crat
l_.str.2:                               ; @.str.2
	.asciz	"CRAT table disabled by module option\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
