	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chapter_refresh_list_ui
_chapter_refresh_list_ui:               ## @chapter_refresh_list_ui
	.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
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_LIST_BOX
	movq	%rax, %r13
	movl	(%r14), %edi
	callq	_ghb_get_job_chapter_list
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ghb_array_len
	testq	%rax, %rax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ghb_array_get
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_string
	movq	%r14, %r12
	movq	%rax, %r14
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_ghb_dict_get
	movq	%rax, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_ghb_dict_get_int
	cltq
	imulq	$1563749871, %rax, %rdx         ## imm = 0x5D34EDEF
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$47, %rdx
	addl	%eax, %edx
	incq	%rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_create_chapter_row
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	$-1, %edx
	callq	_gtk_list_box_insert
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rbx, %rax
	jne	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chapters_list"

L_.str.1:                               ## @.str.1
	.asciz	"Name"

L_.str.2:                               ## @.str.2
	.asciz	"Duration"

L_.str.3:                               ## @.str.3
	.asciz	"Ticks"

	.no_dead_strip	_chapter_refresh_list_ui
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chapter_refresh_list_ui
_chapter_refresh_list_ui:               ; @chapter_refresh_list_ui
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_LIST_BOX
	mov	x20, x0
	ldr	w0, [x19]
	bl	_ghb_get_job_chapter_list
	mov	x21, x0
	bl	_ghb_array_len
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x23, #0
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
	mov	w24, #60911
	movk	w24, #23860, lsl #16
Lloh4:
	adrp	x26, l_.str.3@PAGE
Lloh5:
	add	x26, x26, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ghb_array_get
	mov	x27, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_string
	mov	x28, x0
	mov	x0, x27
	mov	x1, x25
	bl	_ghb_dict_get
	mov	x1, x26
	bl	_ghb_dict_get_int
	smull	x8, w0, w24
	lsr	x9, x8, #63
	asr	x8, x8, #47
	add	w2, w8, w9
	add	x23, x23, #1
	mov	x0, x23
	mov	w1, #0
	mov	x3, x28
	mov	x4, x19
	bl	_create_chapter_row
	mov	x1, x0
	mov	x0, x20
	mov	w2, #-1
	bl	_gtk_list_box_insert
	cmp	x22, x23
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chapters_list"

l_.str.1:                               ; @.str.1
	.asciz	"Name"

l_.str.2:                               ; @.str.2
	.asciz	"Duration"

l_.str.3:                               ; @.str.3
	.asciz	"Ticks"

	.no_dead_strip	_chapter_refresh_list_ui
.subsections_via_symbols
