	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sws_getContext                 ## -- Begin function sws_getContext
	.p2align	4, 0x90
_sws_getContext:                        ## @sws_getContext
	.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
	movl	16(%rbp), %eax
	pushq	40(%rbp)
	pushq	%rax
	callq	_sws_alloc_set_opts
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	32(%rbp), %rdx
	movq	24(%rbp), %rsi
	movq	%rax, %rdi
	callq	_sws_init_context
	testq	%rax, %rax
	jns	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_sws_freeContext
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sws_getContext                 ; -- Begin function sws_getContext
	.p2align	2
_sws_getContext:                        ; @sws_getContext
	.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	x19, x7
	ldr	x7, [x29, #24]
	bl	_sws_alloc_set_opts
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x2, [x29, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_sws_init_context
	tbz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_sws_freeContext
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
