	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_longest_title              ## -- Begin function ghb_longest_title
	.p2align	4, 0x90
_ghb_longest_title:                     ## @ghb_longest_title
	.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
	leaq	L_.str(%rip), %rdi
	callq	_g_debug
	movq	_h_scan@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_hb_get_title_set
	movq	%rax, %r14
	movl	8(%rax), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	(%rax), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%rax)
	cmovgl	%ecx, %r12d
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_3:
	movl	$-1, %r12d
	jmp	LBB0_8
LBB0_6:
	movl	%ecx, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ghb_longest_title ()\n"

	.comm	_h_scan,8,3                     ## @h_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_longest_title              ; -- Begin function ghb_longest_title
	.p2align	2
_ghb_longest_title:                     ; @ghb_longest_title
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_debug
Lloh2:
	adrp	x8, _h_scan@GOTPAGE
Lloh3:
	ldr	x8, [x8, _h_scan@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.1:
	bl	_hb_get_title_set
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, x0
	mov	w22, #0
	mov	w20, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x22
	bl	_hb_list_item
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x0, #8]
	cmp	x9, #0
	csel	w20, w8, w20, gt
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_8
LBB0_7:
	mov	x20, x8
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ghb_longest_title ()\n"

	.comm	_h_scan,8,3                     ; @h_scan
.subsections_via_symbols
