	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_colorspace
_set_colorspace:                        ## @set_colorspace
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdi, %r15
	movq	_colorspace@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.1:
	movl	%ecx, %eax
	cmpq	%rax, %rdi
	movq	%rax, %rdi
	jne	LBB0_7
## %bb.2:
	cmpl	$1279, %esi                     ## imm = 0x4FF
	ja	LBB0_4
## %bb.3:
	cmpl	$577, %edx                      ## imm = 0x241
	jae	LBB0_4
## %bb.5:
	movq	_AVCOL_SPC_BT470BG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_AVCOL_SPC_BT709@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rdi
LBB0_7:
	callq	_sws_getCoefficients
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rax
	leaq	-36(%rbp), %r10
	leaq	-64(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-40(%rbp), %r9
	movq	%r15, %rdi
	pushq	%rax
	pushq	%r10
	callq	_sws_getColorspaceDetails
	addq	$16, %rsp
	movq	_AVCOL_RANGE_UNSPECIFIED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_10
## %bb.9:
	movl	-28(%rbp), %edx
	jmp	LBB0_11
LBB0_10:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%r14d, (%rax)
	sete	%dl
	movl	%edx, -28(%rbp)
LBB0_11:
	movq	%rbx, -64(%rbp)
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %r8d
	movl	-40(%rbp), %r9d
	movl	-36(%rbp), %r10d
	movl	-32(%rbp), %eax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	pushq	%r10
	callq	_sws_setColorspaceDetails
	addq	$16, %rsp
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_colorspace,8,3                 ## @colorspace
	.comm	_AVCOL_SPC_UNSPECIFIED,8,3      ## @AVCOL_SPC_UNSPECIFIED
	.comm	_AVCOL_SPC_BT709,8,3            ## @AVCOL_SPC_BT709
	.comm	_AVCOL_SPC_BT470BG,8,3          ## @AVCOL_SPC_BT470BG
	.comm	_AVCOL_RANGE_UNSPECIFIED,4,2    ## @AVCOL_RANGE_UNSPECIFIED
	.comm	_AVCOL_RANGE_JPEG,4,2           ## @AVCOL_RANGE_JPEG
	.no_dead_strip	_set_colorspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_colorspace
_set_colorspace:                        ; @set_colorspace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x19, x0
Lloh0:
	adrp	x8, _colorspace@GOTPAGE
Lloh1:
	ldr	x8, [x8, _colorspace@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	x0, x8
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	w0, w3
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.2:
	cmp	w1, #1279
	b.hi	LBB0_5
; %bb.3:
	cmp	w2, #577
	b.hs	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _AVCOL_SPC_BT470BG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVCOL_SPC_BT470BG@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _AVCOL_SPC_BT709@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVCOL_SPC_BT709@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
LBB0_7:
	bl	_sws_getCoefficients
	cbz	x0, LBB0_12
; %bb.8:
	mov	x21, x0
	add	x1, sp, #16
	sub	x2, x29, #36
	add	x3, sp, #8
	add	x4, sp, #40
	add	x5, sp, #36
	add	x6, sp, #32
	add	x7, sp, #28
	mov	x0, x19
	bl	_sws_getColorspaceDetails
Lloh10:
	adrp	x8, _AVCOL_RANGE_UNSPECIFIED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVCOL_RANGE_UNSPECIFIED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.9:
	ldur	w2, [x29, #-36]
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w2, eq
	stur	w2, [x29, #-36]
LBB0_11:
	str	x21, [sp, #16]
	ldr	x3, [sp, #8]
	ldp	w5, w4, [sp, #36]
	ldp	w7, w6, [sp, #28]
	mov	x0, x19
	mov	x1, x21
	bl	_sws_setColorspaceDetails
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_colorspace,8,3                 ; @colorspace
	.comm	_AVCOL_SPC_UNSPECIFIED,8,3      ; @AVCOL_SPC_UNSPECIFIED
	.comm	_AVCOL_SPC_BT709,8,3            ; @AVCOL_SPC_BT709
	.comm	_AVCOL_SPC_BT470BG,8,3          ; @AVCOL_SPC_BT470BG
	.comm	_AVCOL_RANGE_UNSPECIFIED,4,2    ; @AVCOL_RANGE_UNSPECIFIED
	.comm	_AVCOL_RANGE_JPEG,4,2           ; @AVCOL_RANGE_JPEG
	.no_dead_strip	_set_colorspace
.subsections_via_symbols
