	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_video_get_next_level
_acpi_video_get_next_level:             ## @acpi_video_get_next_level
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	cmpl	$3, (%rax)
	jl	LBB0_19
## %bb.1:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$255, %r13d
	movl	$2, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r15
	movl	%r12d, %esi
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%r15,4), %ebx
	movl	%esi, %r12d
	subl	%esi, %ebx
	movl	%ebx, %edi
	callq	_abs
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_abs
	cmpq	%rax, %r14
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %esi
	jmp	LBB0_7
LBB0_19:
	addl	$255, %esi
	xorl	%r10d, %r10d
	movl	$255, %r14d
	movl	%esi, %r13d
	jmp	LBB0_9
LBB0_6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:
	addl	%esi, %r13d
	cmpl	$3, %ecx
	jl	LBB0_8
## %bb.10:
	movq	8(%rax), %r8
	movl	%ecx, %r9d
	movl	$255, %esi
	xorl	%edi, %edi
	movl	$2, %eax
	xorl	%r10d, %r10d
	movl	$255, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ebx
	movl	%edi, %r11d
	movl	(%r8,%rax,4), %ecx
	cmpl	%r14d, %ecx
	cmovll	%ecx, %r14d
	cmpl	%r10d, %ecx
	cmovgl	%ecx, %r10d
	cmpl	%r13d, %ecx
	cmovgl	%ecx, %esi
	cmovll	%ecx, %edi
	cmpl	%ebx, %ecx
	cmovgel	%ebx, %esi
	cmpl	%r11d, %ecx
	cmovlel	%r11d, %edi
	incq	%rax
	cmpq	%rax, %r9
	jne	LBB0_11
	jmp	LBB0_12
LBB0_8:
	xorl	%r10d, %r10d
	movl	$255, %r14d
LBB0_9:
	movl	$255, %esi
	xorl	%edi, %edi
LBB0_12:
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_17
## %bb.13:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rbx
	addq	%rcx, %rbx
	jmpq	*%rbx
LBB0_15:
	cmpl	%r10d, %r13d
	cmovgel	%r10d, %esi
	movl	%esi, %eax
	jmp	LBB0_18
LBB0_17:
	movl	%r13d, %eax
	jmp	LBB0_18
LBB0_16:
	cmpl	%r14d, %r13d
	cmovlel	%r14d, %edi
	movl	%edi, %eax
	jmp	LBB0_18
LBB0_14:
	cmpl	%r10d, %r13d
	cmovll	%esi, %r14d
	movl	%r14d, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_acpi_video_get_next_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_video_get_next_level
_acpi_video_get_next_level:             ; @acpi_video_get_next_level
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	ldr	x11, [x0]
	ldr	w8, [x11]
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.1:
	mov	x22, x0
	mov	w21, #255
	mov	w25, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x11, [x22]
	ldrsw	x12, [x11]
	cmp	x25, x12
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x11, #8]
	ldr	w8, [x8, x25, lsl #2]
	sub	w23, w8, w20
	mov	x0, x23
	bl	_abs
	mov	x24, x0
	mov	x0, x21
	bl	_abs
	cmp	x24, x0
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x23
	cbnz	w23, LBB0_2
; %bb.5:
	ldr	x11, [x22]
	ldr	w12, [x11]
LBB0_6:
	add	w8, w21, w20
	cmp	w12, #3
	b.lt	LBB0_10
; %bb.7:
	mov	w10, #0
	mov	w9, #0
	ldr	x11, [x11, #8]
	mov	w12, w12
	add	x13, x11, #8
	sub	x14, x12, #2
	mov	w12, #255
	mov	w11, #255
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13], #4
	cmp	w15, w8
	ccmp	w15, w10, #4, lt
	csel	w10, w15, w10, gt
	cmp	w15, w8
	ccmp	w15, w12, #0, gt
	csel	w12, w15, w12, lt
	cmp	w15, w11
	csel	w11, w15, w11, lt
	cmp	w15, w9
	csel	w9, w15, w9, gt
	subs	x14, x14, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_9:
	mov	w9, #0
	mov	w10, #0
	add	w8, w20, #255
	b	LBB0_11
LBB0_10:
	mov	w9, #0
	mov	w10, #0
LBB0_11:
	mov	w11, #255
	mov	w12, #255
LBB0_12:
	sub	w13, w19, #128
	cmp	w13, #4
	b.hi	LBB0_15
; %bb.13:
	mov	w0, #0
Lloh0:
	adrp	x14, lJTI0_0@PAGE
Lloh1:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_14
	ldrb	w16, [x14, x13]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_14:
	cmp	w8, w9
	csel	w0, w12, w9, lt
	b	LBB0_18
LBB0_15:
	mov	x0, x8
	b	LBB0_18
LBB0_16:
	cmp	w8, w11
	csel	w0, w10, w11, gt
	b	LBB0_18
LBB0_17:
	cmp	w8, w9
	csel	w0, w12, w11, lt
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_16-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
                                        ; -- End function
	.no_dead_strip	_acpi_video_get_next_level
.subsections_via_symbols
