	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_set_mode
_raw_set_mode:                          ## @raw_set_mode
	.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
	movq	_video_cards@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_video_cards_end@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	$-1, %eax
	cmpq	%r8, %r9
	jae	LBB0_15
## %bb.1:
	movq	_VIDEO_RECALC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	notl	%r10d
	andl	%edi, %r10d
	xorl	%r12d, %r12d
	movq	%r9, %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r11
	cmpq	%r8, %r11
	jae	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%r11), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r11), %rdi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %r14d
	movb	$1, %r15b
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 4(%rdi)
	setne	%r15b
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r12d, %r10d
	sete	%cl
	movl	8(%rdi), %ebx
	testb	%r15b, %cl
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%ebx, %r10d
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%rdi), %ecx
	shll	$8, %ecx
	addl	%r14d, %ecx
	cmpl	%ecx, %r10d
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movzbl	%r15b, %ecx
	addl	%ecx, %r12d
	addq	$12, %rdi
	decl	%edx
	jne	LBB0_4
	jmp	LBB0_10
LBB0_16:
	movl	%ebx, (%rsi)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%r11)                        ## TAILCALL
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$32, %r9
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, %r9
	jae	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%r9), %ecx
	cmpl	%ecx, %r10d
	jl	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	20(%r9), %ecx
	cmpl	%ecx, %r10d
	jge	LBB0_17
## %bb.14:
	movl	%r10d, -40(%rbp)
	movl	%r10d, (%rsi)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	*8(%r9)
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_RECALC,4,2               ## @VIDEO_RECALC
	.comm	_video_cards,8,3                ## @video_cards
	.comm	_video_cards_end,8,3            ## @video_cards_end
	.no_dead_strip	_raw_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_set_mode
_raw_set_mode:                          ; @raw_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _video_cards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video_cards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _video_cards_end@GOTPAGE
Lloh4:
	ldr	x9, [x9, _video_cards_end@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_12
; %bb.1:
	mov	w11, #0
Lloh6:
	adrp	x10, _VIDEO_RECALC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VIDEO_RECALC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	bic	w10, w0, w10
	mov	x12, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, #32
	cmp	x12, x9
	b.hs	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w13, [x12]
	cmp	w13, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x12, #24]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x0]
	cbz	w14, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w15, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w15, [x0, #4]
	cmp	w15, #0
	cset	w15, ne
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmp	w10, w11
	cset	w16, eq
	and	w17, w16, w15
	ldr	w16, [x0, #8]
	tbnz	w17, #0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w10, w16
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w17, [x0, #4]
	add	w14, w14, w17, lsl #8
	cmp	w10, w14
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	add	w11, w11, w15
	add	x0, x0, #12
	subs	w13, w13, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_14:
	str	w16, [x1]
	ldr	x1, [x12, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	br	x1
LBB0_15:
	mov	w0, #-1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x8, x8, #32
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.hs	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w11, [x8, #16]
	cmp	w10, w11
	b.lt	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w12, [x8, #20]
	add	w11, w12, w11
	cmp	w10, w11
	b.ge	LBB0_16
; %bb.20:
	str	w10, [sp, #8]
	str	w10, [x1]
	str	xzr, [sp]
	ldr	x8, [x8, #8]
	mov	x0, sp
	blr	x8
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_RECALC,4,2               ; @VIDEO_RECALC
	.comm	_video_cards,8,3                ; @video_cards
	.comm	_video_cards_end,8,3            ; @video_cards_end
	.no_dead_strip	_raw_set_mode
.subsections_via_symbols
