	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_get_selected_settings
_audio_get_selected_settings:           ## @audio_get_selected_settings
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_TREE_VIEW
	movq	%rax, %rdi
	callq	_gtk_tree_view_get_selection
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rdi
	callq	_gtk_tree_selection_get_selected
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_gtk_tree_model_get_path
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gtk_tree_path_get_indices
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_gtk_tree_path_free
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.2:
	movl	(%r15), %edi
	callq	_ghb_get_job_audio_list
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ghb_array_len
	cmpl	%eax, %r12d
	jge	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ghb_array_get
	testq	%r14, %r14
	je	LBB0_8
## %bb.4:
	movl	%r12d, (%r14)
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	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	"audio_list_view"

	.no_dead_strip	_audio_get_selected_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_get_selected_settings
_audio_get_selected_settings:           ; @audio_get_selected_settings
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
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_selection
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_gtk_tree_selection_get_selected
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	bl	_gtk_tree_model_get_path
	mov	x22, x0
	bl	_gtk_tree_path_get_indices
	ldr	w21, [x0]
	mov	x0, x22
	bl	_gtk_tree_path_free
	tbnz	w21, #31, LBB0_5
; %bb.2:
	ldr	w0, [x20]
	bl	_ghb_get_job_audio_list
	mov	x20, x0
	bl	_ghb_array_len
	cmp	w21, w0
	b.ge	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_ghb_array_get
	cbz	x19, LBB0_6
; %bb.4:
	str	w21, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	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	"audio_list_view"

	.no_dead_strip	_audio_get_selected_settings
.subsections_via_symbols
