	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_title_range_get_duration   ## -- Begin function ghb_title_range_get_duration
	.p2align	4, 0x90
_ghb_title_range_get_duration:          ## @ghb_title_range_get_duration
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_ghb_settings_combo_int
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_settings_combo_int
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
                                        ## kill: def $eax killed $eax def $rax
	subl	%r14d, %eax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ghb_chapter_range_get_duration
	cltq
	imulq	$1563749871, %rax, %rax         ## imm = 0x5D34EDEF
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$47, %rax
	addl	%ecx, %eax
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_settings_combo_int
	movl	%eax, %ecx
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	cmpl	$2, %ecx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_int
	subl	%r15d, %eax
	incl	%eax
	imull	(%r14), %eax
	cltd
	idivl	4(%r14)
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PtoPType"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_title_range_get_duration   ; -- Begin function ghb_title_range_get_duration
	.p2align	2
_ghb_title_range_get_duration:          ; @ghb_title_range_get_duration
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_settings_combo_int
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ghb_settings_combo_int
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	sub	w0, w0, w19
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ghb_chapter_range_get_duration
	mov	w8, #60911
	movk	w8, #23860, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #47
	add	w0, w8, w9
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ghb_settings_combo_int
	mov	x8, x0
	mov	w0, #0
	cbz	x19, LBB0_7
; %bb.5:
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_get_int
	sub	w8, w0, w21
	ldp	w9, w10, [x19]
	madd	w8, w9, w8, w9
	sdiv	w0, w8, w10
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PtoPType"

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

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

.subsections_via_symbols
