	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_times
_choose_times:                          ## @choose_times
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %eax
	leal	(%rax,%rax,8), %ecx
	leal	(%rax,%rax,8), %r10d
	addl	$7, %r10d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r10d
	leal	(,%rax,8), %ecx
	subl	%edi, %ecx
	leal	7(%rcx), %r11d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r11d
	movq	_TIMECODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpl	$2, %r12d
	jl	LBB0_17
## %bb.1:
	sarl	$3, %r10d
	sarl	$3, %r11d
	movq	_time_codes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movl	$65536, %r13d                   ## imm = 0x10000
	movl	$2, %r8d
	movl	$1, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TIMECODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%r12d, %rcx
	incq	%r8
	cmpq	%rcx, %r14
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r15,%r14,4), %r9d
	leal	(%r9,%r9), %ecx
	cmpl	%r11d, %ecx
	jl	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r10d, %r9d
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rcx,4), %ebx
	addl	%r9d, %ebx
	cmpl	%r11d, %ebx
	jl	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r10d, %ebx
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %r12d
	subl	%ebx, %r12d
	movl	%r12d, %edi
	negl	%edi
	cmovsl	%r12d, %edi
	cmpl	%r13d, %edi
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, (%rsi)
	movl	%ecx, (%rdx)
	movl	%edi, %r13d
	cmpl	%eax, %ebx
	jne	LBB0_9
	jmp	LBB0_18
LBB0_12:
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	jg	LBB0_17
## %bb.13:
	testb	$1, %al
	jne	LBB0_15
## %bb.14:
	movl	(%rsi), %eax
	jmp	LBB0_16
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%rdx), %eax
	movl	(%rsi), %ecx
	movl	%ecx, (%rdx)
	movl	%eax, (%rsi)
LBB0_16:
	movq	_time_codes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rsi
	movslq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edi
	addl	(%rcx,%rsi,4), %edi
	xorl	%eax, %eax
	cmpl	%edx, %esi
	setl	%al
	addl	%edi, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMECODES,4,2                  ## @TIMECODES
	.comm	_time_codes,8,3                 ## @time_codes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_choose_times
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_times
_choose_times:                          ; @choose_times
	.cfi_startproc
; %bb.0:
	lsl	w9, w0, #3
	add	w8, w9, w0
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	sub	w9, w9, w0
	add	w10, w9, #7
	cmp	w9, #0
	csel	w11, w10, w9, lt
Lloh0:
	adrp	x9, _TIMECODES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIMECODES@GOTPAGEOFF]
	ldr	w16, [x9]
	cmp	w16, #2
	b.lt	LBB0_16
; %bb.1:
	asr	w10, w8, #3
	asr	w11, w11, #3
Lloh2:
	adrp	x8, _time_codes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _time_codes@GOTPAGEOFF]
	ldr	x12, [x8]
	mov	w13, #65536
	mov	w14, #2
	mov	w15, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w16, [x9]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x15, #1
	add	x14, x14, #1
	cmp	x15, w16, sxtw
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w17, [x12, x15, lsl #2]
	cmp	w11, w17, lsl #1
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w17, w10
	b.gt	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x16, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x16, x16, #1
	cmp	x14, x16
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w3, [x12, x16, lsl #2]
	add	w3, w3, w17
	cmp	w3, w11
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w3, w10
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	subs	w4, w0, w3
	cneg	w4, w4, mi
	cmp	w4, w13
	b.ge	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w15, [x1]
	str	w16, [x2]
	mov	x13, x4
	cmp	w3, w0
	b.ne	LBB0_7
; %bb.12:
	ret
LBB0_13:
	cmp	w13, #16, lsl #12               ; =65536
	b.ge	LBB0_16
; %bb.14:
	tbnz	w0, #0, LBB0_17
; %bb.15:
	ldr	w9, [x1]
	b	LBB0_18
LBB0_16:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_17:
	ldr	w9, [x2]
	ldr	w10, [x1]
	str	w10, [x2]
	str	w9, [x1]
LBB0_18:
	ldr	x8, [x8]
	ldr	w10, [x8, w9, sxtw #2]
	ldrsw	x11, [x2]
	ldr	w8, [x8, x11, lsl #2]
	add	w8, w8, w10
	cmp	w9, w11
	cinc	w0, w8, lt
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMECODES,4,2                  ; @TIMECODES
	.comm	_time_codes,8,3                 ; @time_codes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_choose_times
.subsections_via_symbols
