	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_log_create           ## -- Begin function intel_guc_log_create
	.p2align	4, 0x90
_intel_guc_log_create:                  ## @intel_guc_log_create
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_log_to_guc
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	callq	_GEM_BUG_ON
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	_CRASH_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	_DPC_BUFFER_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_ISR_BUFFER_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_intel_guc_allocate_vma
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, 8(%r14)
	movq	%r14, %rdi
	callq	___get_default_log_level
	movl	%eax, %ebx
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_enableddisabled
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_GUC_LOG_LEVEL_IS_VERBOSE
	movl	%eax, %edi
	callq	_yesno
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_GUC_LOG_LEVEL_TO_VERBOSITY
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_DRM_DEBUG_DRIVER
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_CRASH_BUFFER_SIZE,8,3          ## @CRASH_BUFFER_SIZE
	.comm	_DPC_BUFFER_SIZE,8,3            ## @DPC_BUFFER_SIZE
	.comm	_ISR_BUFFER_SIZE,8,3            ## @ISR_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate GuC log buffer. %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_log_create           ; -- Begin function intel_guc_log_create
	.p2align	2
_intel_guc_log_create:                  ; @intel_guc_log_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_log_to_guc
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CRASH_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRASH_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DPC_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DPC_BUFFER_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x8, x8, x10
Lloh9:
	adrp	x9, _ISR_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISR_BUFFER_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x8, x9
	mov	x0, x20
	bl	_intel_guc_allocate_vma
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x19, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
	b	LBB0_3
LBB0_2:
	str	x20, [x19, #8]
	mov	x0, x19
	bl	___get_default_log_level
	mov	x20, x0
	str	w0, [x19]
	bl	_enableddisabled
	mov	x21, x0
	ldr	w0, [x19]
	bl	_GUC_LOG_LEVEL_IS_VERBOSE
	bl	_yesno
	mov	x22, x0
	ldr	w0, [x19]
	bl	_GUC_LOG_LEVEL_TO_VERBOSITY
	mov	x4, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_DRM_DEBUG_DRIVER
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_CRASH_BUFFER_SIZE,8,3          ; @CRASH_BUFFER_SIZE
	.comm	_DPC_BUFFER_SIZE,8,3            ; @DPC_BUFFER_SIZE
	.comm	_ISR_BUFFER_SIZE,8,3            ; @ISR_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate GuC log buffer. %d\n"

.subsections_via_symbols
