	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_sws_get_context             ## -- Begin function hb_sws_get_context
	.p2align	4, 0x90
_hb_sws_get_context:                    ## @hb_sws_get_context
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	%edx, -48(%rbp)
	movl	%r9d, -44(%rbp)
	xorl	%eax, %eax
	callq	_sws_alloc_context
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	16(%rbp), %r13d
	leaq	-48(%rbp), %rdi
	callq	_handle_jpeg
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%eax, %r12d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rdi
	callq	_handle_jpeg
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_SWS_FULL_CHR_H_INT@GOTPCREL(%rip), %rax
	movq	_SWS_FULL_CHR_H_INP@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movl	-48(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movl	-44(%rbp), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movl	24(%rbp), %r15d
	movl	%r15d, %edi
	callq	_sws_getCoefficients
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_sws_getCoefficients
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	$65536                          ## imm = 0x10000
	pushq	$65536                          ## imm = 0x10000
	callq	_sws_setColorspaceDetails
	addq	$16, %rsp
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sws_init_context
	testq	%rax, %rax
	jns	LBB0_4
## %bb.2:
	leaq	L_.str.9(%rip), %rdi
	callq	_hb_error
	movq	%rbx, %rdi
	callq	_sws_freeContext
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWS_FULL_CHR_H_INT,4,2         ## @SWS_FULL_CHR_H_INT
	.comm	_SWS_FULL_CHR_H_INP,4,2         ## @SWS_FULL_CHR_H_INP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"srcw"

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

L_.str.2:                               ## @.str.2
	.asciz	"src_range"

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

L_.str.4:                               ## @.str.4
	.asciz	"dstw"

L_.str.5:                               ## @.str.5
	.asciz	"dsth"

L_.str.6:                               ## @.str.6
	.asciz	"dst_range"

L_.str.7:                               ## @.str.7
	.asciz	"dst_format"

L_.str.8:                               ## @.str.8
	.asciz	"sws_flags"

L_.str.9:                               ## @.str.9
	.asciz	"Cannot initialize resampling context"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_sws_get_context             ; -- Begin function hb_sws_get_context
	.p2align	2
_hb_sws_get_context:                    ; @hb_sws_get_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x24, x6
	mov	x23, x4
	mov	x25, x3
	mov	x26, x1
	mov	x27, x0
	stp	w5, w2, [sp, #8]
	bl	_sws_alloc_context
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_handle_jpeg
	mov	x21, x0
	add	x0, sp, #8
	bl	_handle_jpeg
	mov	x22, x0
Lloh0:
	adrp	x8, _SWS_FULL_CHR_H_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWS_FULL_CHR_H_INT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SWS_FULL_CHR_H_INP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SWS_FULL_CHR_H_INP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w24
	orr	w24, w8, w9
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x27
	mov	w3, #0
	bl	_av_opt_set_int
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x26
	mov	w3, #0
	bl	_av_opt_set_int
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	w2, [sp, #12]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_av_opt_set_int
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	mov	w3, #0
	bl	_av_opt_set_int
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	w3, #0
	bl	_av_opt_set_int
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	w2, [sp, #8]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_av_opt_set_int
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	mov	w3, #0
	bl	_av_opt_set_int
	mov	x0, x20
	bl	_sws_getCoefficients
	mov	x23, x0
	mov	x0, x20
	bl	_sws_getCoefficients
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x4, x22
	mov	w5, #0
	mov	w6, #65536
	mov	w7, #65536
	bl	_sws_setColorspaceDetails
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_sws_init_context
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh24:
	adrp	x0, l_.str.9@PAGE
Lloh25:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_hb_error
	mov	x0, x19
	bl	_sws_freeContext
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SWS_FULL_CHR_H_INT,4,2         ; @SWS_FULL_CHR_H_INT
	.comm	_SWS_FULL_CHR_H_INP,4,2         ; @SWS_FULL_CHR_H_INP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"srcw"

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

l_.str.2:                               ; @.str.2
	.asciz	"src_range"

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

l_.str.4:                               ; @.str.4
	.asciz	"dstw"

l_.str.5:                               ; @.str.5
	.asciz	"dsth"

l_.str.6:                               ; @.str.6
	.asciz	"dst_range"

l_.str.7:                               ; @.str.7
	.asciz	"dst_format"

l_.str.8:                               ; @.str.8
	.asciz	"sws_flags"

l_.str.9:                               ; @.str.9
	.asciz	"Cannot initialize resampling context"

.subsections_via_symbols
