	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_select_default_preset      ## -- Begin function ghb_select_default_preset
	.p2align	4, 0x90
_ghb_select_default_preset:             ## @ghb_select_default_preset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_hb_presets_get_default_index
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	jne	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_g_free
	movq	_HB_PRESET_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	callq	_hb_preset_search_index
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_5
LBB0_4:
	movq	$0, -24(%rbp)
	movq	%rbx, %rdi
	callq	_g_free
	leaq	-24(%rbp), %rdi
	movl	$2, %esi
	callq	_hb_preset_index_init
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_select_preset2
	movq	%rbx, %rdi
	callq	_g_free
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fast 1080p30"

	.comm	_HB_PRESET_TYPE_ALL,4,2         ## @HB_PRESET_TYPE_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_select_default_preset      ; -- Begin function ghb_select_default_preset
	.p2align	2
_ghb_select_default_preset:             ; @ghb_select_default_preset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_hb_presets_get_default_index
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_g_free
Lloh0:
	adrp	x8, _HB_PRESET_TYPE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_PRESET_TYPE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #1
	bl	_hb_preset_search_index
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
LBB0_4:
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_g_free
	add	x0, sp, #8
	mov	w1, #2
	bl	_hb_preset_index_init
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_select_preset2
	mov	x0, x20
	bl	_g_free
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fast 1080p30"

	.comm	_HB_PRESET_TYPE_ALL,4,2         ; @HB_PRESET_TYPE_ALL
.subsections_via_symbols
