	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_layer_config
_try_layer_config:                      ## @try_layer_config
	.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
	movq	%rdx, %r12
	movl	%esi, %eax
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	addq	%rax, %rbx
	addq	8(%rdi), %rbx
	movl	(%rdx), %ecx
	movl	$1, %eax
	addl	$-128, %ecx
	cmpl	$9, %ecx
	ja	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	(%r15), %rax
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_3:
	movl	%r14d, %edi
	callq	_is_vid_win
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
LBB0_4:
	sete	%al
LBB0_5:
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movups	(%rbx), %xmm0
	movups	12(%rbx), %xmm1
	movups	%xmm1, 12(%r12)
	movups	%xmm0, (%r12)
	jmp	LBB0_26
LBB0_7:
	movq	(%r15), %rax
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_8:
	cmpq	%rcx, %rax
	jne	LBB0_14
## %bb.9:
	movl	%r14d, %edi
	callq	_is_osd_win
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	(%r12), %edi
	callq	_is_rgb_pixfmt
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	_WIN_OSD0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%r15), %rax
	cmpl	%r14d, %ecx
	jne	LBB0_13
## %bb.12:
	movq	_WIN_OSD1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,8), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx), %edi
	callq	_is_rgb_pixfmt
	testq	%rax, %rax
	jne	LBB0_25
LBB0_14:
	movq	(%r15), %rax
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.15:
	movl	%r14d, %edi
	callq	_is_vid_win
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	cmpl	$130, (%r12)
	jne	LBB0_20
## %bb.17:
	movq	_WIN_VID0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	8(%r15), %rax
	cmpl	%r14d, %ecx
	jne	LBB0_19
## %bb.18:
	movq	_WIN_VID1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_19:
	leaq	(%rcx,%rcx,8), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	addq	%rcx, %rdx
	cmpl	$130, (%rax,%rdx)
	je	LBB0_25
LBB0_20:
	movl	4(%r12), %edi
	testl	%edi, %edi
	je	LBB0_25
## %bb.21:
	cmpl	$0, 8(%r12)
	je	LBB0_25
## %bb.22:
	cmpl	$0, 12(%r12)
	je	LBB0_25
## %bb.23:
	leal	31(%rdi), %eax
	addl	$62, %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	andl	$-32, %edi
	movl	%edi, 4(%r12)
	movq	_MAX_LINE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_min
	movl	%eax, 4(%r12)
	movl	8(%r12), %edi
	movq	_MAX_WIN_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_min
	movl	%eax, 8(%r12)
	movl	12(%r12), %edi
	movl	(%rbx), %esi
	callq	_min
	movl	%eax, 12(%r12)
	movl	16(%r12), %edi
	movl	(%rbx), %esi
	callq	_min
	movl	%eax, 16(%r12)
	movl	20(%r12), %edi
	movl	(%rbx), %esi
	callq	_min
	movq	%rax, %rcx
	movl	%ecx, 20(%r12)
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpl	$0, 24(%r12)
	setne	%dl
	movl	%edx, 24(%r12)
	je	LBB0_26
## %bb.24:
	andb	$-2, 12(%r12)
	andl	$-2, %ecx
	movl	%ecx, 20(%r12)
	jmp	LBB0_26
LBB0_25:
	movups	(%rbx), %xmm0
	movups	12(%rbx), %xmm1
	movups	%xmm1, 12(%r12)
	movups	%xmm0, (%r12)
	movl	$1, %eax
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	(%r15), %rcx
	movq	_VPBE_VERSION_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.28:
	movl	%r14d, %edi
	callq	_is_osd_win
	jmp	LBB0_5
LBB0_29:
	movq	(%r15), %rax
	movq	_VPBE_VERSION_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.30:
	movq	_VPBE_VERSION_3@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_32
## %bb.31:
	movq	_VPBE_VERSION_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_8
LBB0_32:
	movl	%r14d, %edi
	callq	_is_osd_win
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jmp	LBB0_4
LBB0_33:
	movq	_WIN_OSD1@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r14d, (%rcx)
	setne	%al
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_29
	.long	L0_0_set_2
	.long	L0_0_set_33
	.long	L0_0_set_27
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_VPBE_VERSION_1,8,3             ## @VPBE_VERSION_1
	.comm	_VPBE_VERSION_3,8,3             ## @VPBE_VERSION_3
	.comm	_VPBE_VERSION_2,8,3             ## @VPBE_VERSION_2
	.comm	_WIN_OSD1,4,2                   ## @WIN_OSD1
	.comm	_WIN_OSD0,4,2                   ## @WIN_OSD0
	.comm	_WIN_VID0,4,2                   ## @WIN_VID0
	.comm	_WIN_VID1,8,3                   ## @WIN_VID1
	.comm	_MAX_LINE_LENGTH,8,3            ## @MAX_LINE_LENGTH
	.comm	_MAX_WIN_SIZE,8,3               ## @MAX_WIN_SIZE
	.no_dead_strip	_try_layer_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_layer_config
_try_layer_config:                      ; @try_layer_config
	.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
	mov	x19, x2
	ldr	x8, [x0, #8]
	mov	w9, #28
	umaddl	x22, w1, w9, x8
	ldr	w8, [x2]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_23
; %bb.1:
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _VPBE_VERSION_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_is_vid_win
	cmp	x0, #0
LBB0_4:
	cset	w0, eq
LBB0_5:
	cbnz	w0, LBB0_24
; %bb.6:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _VPBE_VERSION_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
LBB0_7:
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_is_osd_win
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w0, [x19]
	bl	_is_rgb_pixfmt
	cbz	x0, LBB0_11
; %bb.10:
Lloh8:
	adrp	x8, _WIN_OSD0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WIN_OSD0@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
Lloh11:
	adrp	x10, _WIN_OSD1@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WIN_OSD1@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w20
	csel	w8, w10, w8, eq
	mov	w10, #28
	smull	x8, w8, w10
	ldr	w0, [x9, x8]
	bl	_is_rgb_pixfmt
	cbnz	x0, LBB0_20
LBB0_11:
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _VPBE_VERSION_1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_is_vid_win
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w8, [x19]
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.14:
Lloh17:
	adrp	x8, _WIN_VID0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WIN_VID0@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	ldr	x9, [x21, #8]
Lloh20:
	adrp	x10, _WIN_VID1@GOTPAGE
Lloh21:
	ldr	x10, [x10, _WIN_VID1@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	w8, w20
	csel	x8, x10, x8, eq
	mov	w10, #28
	mul	x8, x8, x10
	ldr	w8, [x9, x8]
	cmp	w8, #130
	b.eq	LBB0_20
LBB0_15:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_20
; %bb.16:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_20
; %bb.17:
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_20
; %bb.18:
	add	w9, w8, #31
	add	w8, w8, #62
	cmp	w9, #0
	csel	w8, w8, w9, lt
	and	w0, w8, #0xffffffe0
	str	w0, [x19, #4]
Lloh23:
	adrp	x8, _MAX_LINE_LENGTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_LINE_LENGTH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_min
	str	w0, [x19, #4]
	ldr	w0, [x19, #8]
Lloh26:
	adrp	x20, _MAX_WIN_SIZE@GOTPAGE
Lloh27:
	ldr	x20, [x20, _MAX_WIN_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_min
	str	w0, [x19, #8]
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
	bl	_min
	str	w0, [x19, #12]
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	bl	_min
	str	w0, [x19, #16]
	ldr	w0, [x19, #20]
	ldr	w1, [x20]
	bl	_min
	mov	x8, x0
	ldr	w9, [x19, #24]
	cmp	w9, #0
	cset	w10, ne
	stp	w8, w10, [x19, #20]
	mov	w0, #0
	cbz	w9, LBB0_25
; %bb.19:
	ldr	w9, [x19, #12]
	and	w9, w9, #0xfffffffe
	str	w9, [x19, #12]
	and	w8, w8, #0xfffffffe
	str	w8, [x19, #20]
	b	LBB0_25
LBB0_20:
	ldr	q0, [x22]
	ldur	q1, [x22, #12]
	stur	q1, [x19, #12]
	str	q0, [x19]
	mov	w0, #1
	b	LBB0_25
LBB0_21:
	ldr	x8, [x21]
Lloh28:
	adrp	x9, _VPBE_VERSION_2@GOTPAGE
Lloh29:
	ldr	x9, [x9, _VPBE_VERSION_2@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_is_osd_win
	b	LBB0_5
LBB0_23:
	mov	w0, #1
LBB0_24:
	ldr	q0, [x22]
	ldur	q1, [x22, #12]
	stur	q1, [x19, #12]
	str	q0, [x19]
LBB0_25:
	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
LBB0_26:
	ldr	x8, [x21]
Lloh31:
	adrp	x9, _VPBE_VERSION_1@GOTPAGE
Lloh32:
	ldr	x9, [x9, _VPBE_VERSION_1@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.27:
Lloh34:
	adrp	x10, _VPBE_VERSION_3@GOTPAGE
Lloh35:
	ldr	x10, [x10, _VPBE_VERSION_3@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
Lloh37:
	adrp	x11, _VPBE_VERSION_2@GOTPAGE
Lloh38:
	ldr	x11, [x11, _VPBE_VERSION_2@GOTPAGEOFF]
Lloh39:
	ldr	x11, [x11]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.28:
	mov	x0, x20
	bl	_is_osd_win
	cmp	w0, #0
	b	LBB0_4
LBB0_29:
Lloh40:
	adrp	x8, _WIN_OSD1@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WIN_OSD1@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, ne
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_VPBE_VERSION_1,8,3             ; @VPBE_VERSION_1
	.comm	_VPBE_VERSION_3,8,3             ; @VPBE_VERSION_3
	.comm	_VPBE_VERSION_2,8,3             ; @VPBE_VERSION_2
	.comm	_WIN_OSD1,4,2                   ; @WIN_OSD1
	.comm	_WIN_OSD0,4,2                   ; @WIN_OSD0
	.comm	_WIN_VID0,4,2                   ; @WIN_VID0
	.comm	_WIN_VID1,8,3                   ; @WIN_VID1
	.comm	_MAX_LINE_LENGTH,8,3            ; @MAX_LINE_LENGTH
	.comm	_MAX_WIN_SIZE,8,3               ; @MAX_WIN_SIZE
	.no_dead_strip	_try_layer_config
.subsections_via_symbols
