	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_presets_list_clear_default ## -- Begin function ghb_presets_list_clear_default
	.p2align	4, 0x90
_ghb_presets_list_clear_default:        ## @ghb_presets_list_clear_default
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_hb_presets_get_default_index
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_TREE_VIEW
	movq	%rax, %rdi
	callq	_gtk_tree_view_get_model
	movl	%eax, %edi
	callq	_GTK_TREE_STORE
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ghb_tree_path_new_from_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_GTK_TREE_MODEL
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_gtk_tree_model_get_iter
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$-1, (%rsp)
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	movl	$400, %ecx                      ## imm = 0x190
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_gtk_tree_store_set
LBB0_5:
	movq	%r14, %rdi
	callq	_gtk_tree_path_free
LBB0_6:
	movq	%r12, %rdi
	callq	_free
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"presets_list"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_presets_list_clear_default ; -- Begin function ghb_presets_list_clear_default
	.p2align	2
_ghb_presets_list_clear_default:        ; @ghb_presets_list_clear_default
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_hb_presets_get_default_index
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_TREE_VIEW
	bl	_gtk_tree_view_get_model
	bl	_GTK_TREE_STORE
	mov	x21, x0
	mov	x0, x19
	bl	_ghb_tree_path_new_from_index
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	bl	_GTK_TREE_MODEL
	add	x1, sp, #12
	mov	x2, x20
	bl	_gtk_tree_model_get_iter
	cbz	x0, LBB0_5
; %bb.4:
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #1
	mov	w3, #400
	mov	w4, #2
	mov	w5, #0
	mov	w6, #-1
	bl	_gtk_tree_store_set
LBB0_5:
	mov	x0, x20
	bl	_gtk_tree_path_free
LBB0_6:
	mov	x0, x19
	bl	_free
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"presets_list"

.subsections_via_symbols
