	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_static_screen_control
_set_static_screen_control:             ## @set_static_screen_control
	.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
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	xorl	%eax, %eax
	cmpq	$0, 24(%rdx)
	setne	%al
	shll	$8, %eax
	cmpq	$0, 16(%rdx)
	leal	128(%rax), %ecx
	cmovel	%eax, %ecx
	leal	2(%rcx), %eax
	cmpq	$0, 8(%rdx)
	cmovel	%ecx, %eax
	xorl	%ecx, %ecx
	cmpq	$0, (%rdx)
	setne	%cl
	orl	%eax, %ecx
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ecx, %r12d
	orl	$132, %r12d
	cmpq	$0, (%rax)
	cmovel	%ecx, %r12d
	movl	%esi, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movl	%r12d, %esi
	callq	*(%rax)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_static_screen_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_static_screen_control
_set_static_screen_control:             ; @set_static_screen_control
	.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
	cbz	w1, LBB0_3
; %bb.1:
	mov	x19, x0
	ldp	x8, x9, [x2, #16]
	cmp	x9, #0
	cset	w9, ne
	lsl	w10, w9, #8
	mov	w11, #128
	bfi	w11, w9, #8, #1
	cmp	x8, #0
	csel	w8, w10, w11, eq
	orr	w9, w8, #0x2
	ldp	x11, x10, [x2]
	cmp	x10, #0
	csel	w8, w8, w9, eq
	cmp	x11, #0
	cset	w9, ne
	orr	w8, w8, w9
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x9, [x9]
	mov	w10, #132
	orr	w10, w8, w10
	cmp	x9, #0
	csel	w20, w8, w10, eq
	mov	w21, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19], #8
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x20
	blr	x8
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_static_screen_control
.subsections_via_symbols
