	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_frame
_convert_frame:                         ## @convert_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rax
	movq	%rsi, %rbx
	xorl	%r8d, %r8d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	8(%rax), %rcx
	movl	(%rax), %r8d
	jmp	LBB0_6
LBB0_1:
	xorl	%esi, %esi
	xorl	%edx, %edx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_swr_convert
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_8:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_frame
_convert_frame:                         ; @convert_frame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.1:
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	cbz	x8, LBB0_6
LBB0_2:
	ldr	x3, [x8, #8]
	ldr	w4, [x8]
	bl	_swr_convert
	cbz	x19, LBB0_4
LBB0_3:
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	str	w8, [x19]
LBB0_4:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w2, #0
	cbnz	x8, LBB0_2
LBB0_6:
	mov	x3, #0
	mov	w4, #0
	bl	_swr_convert
	cbnz	x19, LBB0_3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_frame
.subsections_via_symbols
