	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_load_vbt_firmware
_intel_load_vbt_firmware:               ## @intel_load_vbt_firmware
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -32(%rbp)
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%r15)
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	(%rdi), %rdx
	leaq	-32(%rbp), %rdi
	movq	%r15, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_DRM_ERROR
	jmp	LBB0_12
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-32(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_intel_bios_is_valid_vbt
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	-32(%rbp), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_DRM_DEBUG_KMS
	movq	16(%r14), %rax
	movq	%rax, 24(%r14)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	-32(%rbp), %rdi
	callq	_release_firmware
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_modparams,8,3             ## @i915_modparams
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requesting VBT firmware \"%s\" failed (%d)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Found valid VBT firmware \"%s\"\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Invalid VBT firmware \"%s\"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_load_vbt_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_load_vbt_firmware
_intel_load_vbt_firmware:               ; @intel_load_vbt_firmware
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_4
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x0
	ldr	x2, [x0]
	add	x0, sp, #8
	mov	x1, x20
	bl	_request_firmware
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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_6:
	ldr	x8, [sp, #8]
	ldp	w1, w0, [x8]
	bl	_intel_bios_is_valid_vbt
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [sp, #8]
	ldp	w1, w0, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_kmemdup
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	mov	w21, #0
	ldr	x8, [x19, #16]
	str	x8, [x19, #24]
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_release_firmware
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_modparams,8,3             ; @i915_modparams
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requesting VBT firmware \"%s\" failed (%d)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Found valid VBT firmware \"%s\"\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Invalid VBT firmware \"%s\"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intel_load_vbt_firmware
.subsections_via_symbols
