	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_backlight_max_vbt
_get_backlight_max_vbt:                 ## @get_backlight_max_vbt
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_i915
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movl	$200, %r14d
	movl	$200, %esi
LBB0_5:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"backlight frequency conversion not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"VBT defined backlight frequency %u Hz\n"

L_.str.2:                               ## @.str.2
	.asciz	"default backlight frequency %u Hz\n"

L_.str.3:                               ## @.str.3
	.asciz	"backlight frequency conversion failed\n"

	.no_dead_strip	_get_backlight_max_vbt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_backlight_max_vbt
_get_backlight_max_vbt:                 ; @get_backlight_max_vbt
	.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
	ldr	w0, [x0, #8]
	bl	_to_i915
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w20, [x0]
	cbz	w20, LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	mov	w20, #200
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_5:
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_8
; %bb.6:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"backlight frequency conversion not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"VBT defined backlight frequency %u Hz\n"

l_.str.2:                               ; @.str.2
	.asciz	"default backlight frequency %u Hz\n"

l_.str.3:                               ; @.str.3
	.asciz	"backlight frequency conversion failed\n"

	.no_dead_strip	_get_backlight_max_vbt
.subsections_via_symbols
