	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_set_mode
_vpbe_set_mode:                         ## @vpbe_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	%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
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rax
	movl	20(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.2:
	movq	40(%rax), %rcx
	movslq	(%rax), %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rcx
	shlq	$4, %rbx
	cmpl	$0, (%rcx,%rbx)
	jle	LBB0_11
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rbx), %rax
	movl	20(%rax,%r14), %esi
	callq	_strcmp
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx,%rbx), %r13
	movl	(%r13,%r14), %eax
	movq	_VPBE_ENC_STD@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_VPBE_ENC_DV_TIMINGS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r14, %r13
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%rcx,%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	20(%r12), %edi
	addq	$24, %r14
	incq	%r15
	jmp	LBB0_4
LBB0_10:
	testq	%r13, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.12:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %r14
	movups	(%r13), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	16(%r13), %rax
	movq	%rax, 24(%rbx)
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	*8(%r14)
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	*(%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	16(%r13,%r14), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vpbe_s_std                     ## TAILCALL
LBB0_15:
	movl	12(%r13,%r14), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpbe_s_dv_timings
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VPBE_ENC_STD,4,2               ## @VPBE_ENC_STD
	.comm	_VPBE_ENC_DV_TIMINGS,4,2        ## @VPBE_ENC_DV_TIMINGS
	.no_dead_strip	_vpbe_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpbe_set_mode
_vpbe_set_mode:                         ; @vpbe_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #20]
	cbz	w0, LBB0_11
; %bb.2:
	ldr	x21, [x19, #40]
	ldrsw	x23, [x19]
	ldr	x8, [x21]
	lsl	x24, x23, #4
	ldr	w9, [x8, x24]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x25, #0
	mov	x22, #0
	mov	w26, #1
Lloh0:
	adrp	x27, _VPBE_ENC_STD@GOTPAGE
Lloh1:
	ldr	x27, [x27, _VPBE_ENC_STD@GOTPAGEOFF]
Lloh2:
	adrp	x28, _VPBE_ENC_DV_TIMINGS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _VPBE_ENC_DV_TIMINGS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23, lsl #4
	ldr	x8, [x8, #8]
	add	x8, x8, x25
	ldr	w1, [x8, #20]
	bl	_strcmp
	ldr	x8, [x21]
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x8, x23, lsl #4
	ldr	x9, [x9, #8]
	add	x22, x9, x25
	ldr	w10, [x22]
	ldr	w11, [x27]
	tst	w11, w10
	b.ne	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x28]
	tst	w11, w10
	b.ne	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x8, x24]
	cmp	x26, x9
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #20]
	add	x25, x25, #24
	add	x26, x26, #1
	b	LBB0_4
LBB0_9:
	cbz	x22, LBB0_11
; %bb.10:
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	x21, [x19, #32]
	ldr	q0, [x22]
	ldr	x8, [x22, #16]
	str	x8, [x19, #24]
	stur	q0, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	w1, [x19, #16]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21]
	ldr	w1, [x19, #12]
	mov	x0, x21
	blr	x8
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w1, [x22, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vpbe_s_std
LBB0_14:
	add	x8, x9, x25
	ldr	w8, [x8, #12]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_vpbe_s_dv_timings
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VPBE_ENC_STD,4,2               ; @VPBE_ENC_STD
	.comm	_VPBE_ENC_DV_TIMINGS,4,2        ; @VPBE_ENC_DV_TIMINGS
	.no_dead_strip	_vpbe_set_mode
.subsections_via_symbols
