	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ghb_queue_remove_row_internal
_ghb_queue_remove_row_internal:         ## @ghb_queue_remove_row_internal
	.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
	testl	%esi, %esi
	js	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_ghb_array_len
	cmpl	%ebx, %eax
	jle	LBB0_6
## %bb.2:
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_ghb_array_get
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_dict_get
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_dict_get_int
	movq	_GHB_QUEUE_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ghb_cancel_encode2
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_ghb_dict_get_int
	movl	%eax, %edi
	callq	_ghb_remove_job
LBB0_5:
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_ghb_array_remove
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_GHB_WIDGET
	movl	%eax, %edi
	callq	_GTK_LIST_BOX
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_gtk_list_box_get_row_at_index
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_GTK_CONTAINER
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_GTK_WIDGET
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gtk_container_remove           ## TAILCALL
LBB0_6:
	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	"uiSettings"

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

	.comm	_GHB_QUEUE_RUNNING,4,2          ## @GHB_QUEUE_RUNNING
L_.str.2:                               ## @.str.2
	.asciz	"job_unique_id"

L_.str.3:                               ## @.str.3
	.asciz	"queue_list"

	.no_dead_strip	_ghb_queue_remove_row_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ghb_queue_remove_row_internal
_ghb_queue_remove_row_internal:         ; @ghb_queue_remove_row_internal
	.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
	tbnz	w1, #31, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_ghb_array_len
	cmp	w0, w19
	b.le	LBB0_6
; %bb.2:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_ghb_array_get
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_int
Lloh4:
	adrp	x8, _GHB_QUEUE_RUNNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GHB_QUEUE_RUNNING@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	bl	_ghb_cancel_encode2
	cbz	w0, LBB0_6
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ghb_dict_get_int
	bl	_ghb_remove_job
LBB0_5:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_ghb_array_remove
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_LIST_BOX
	mov	x20, x0
	mov	x1, x19
	bl	_gtk_list_box_get_row_at_index
	mov	x19, x0
	mov	x0, x20
	bl	_GTK_CONTAINER
	mov	x20, x0
	mov	x0, x19
	bl	_GTK_WIDGET
	mov	x1, x0
	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
	b	_gtk_container_remove
LBB0_6:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uiSettings"

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

	.comm	_GHB_QUEUE_RUNNING,4,2          ; @GHB_QUEUE_RUNNING
l_.str.2:                               ; @.str.2
	.asciz	"job_unique_id"

l_.str.3:                               ; @.str.3
	.asciz	"queue_list"

	.no_dead_strip	_ghb_queue_remove_row_internal
.subsections_via_symbols
