	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choose_pixel_fmt               ## -- Begin function choose_pixel_fmt
	.p2align	4, 0x90
_choose_pixel_fmt:                      ## @choose_pixel_fmt
	.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	%ecx, %r13d
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r15
	movq	(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.2:
	movq	%rsi, %r14
	movl	%r13d, %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movl	(%rax), %eax
	notl	%eax
	andl	$1, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	(%r14), %rax
	movq	_FF_COMPLIANCE_UNOFFICIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movl	%r15d, %r12d
	jmp	LBB0_8
LBB0_7:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_get_compliance_unofficial_pix_fmts
	movq	%rax, %rbx
	movl	(%r12), %r12d
LBB0_8:
	movl	(%rbx), %r14d
	cmpl	%r12d, %r14d
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %r14d
	jmp	LBB0_14
LBB0_10:
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_avcodec_find_best_pix_fmt_of_2
	movl	%eax, %r15d
	cmpl	%r13d, -4(%rbx)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %r14d
	addq	$4, %rbx
	movl	%r14d, %r12d
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_11
	jmp	LBB0_14
LBB0_12:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %r12d
LBB0_14:
	cmpl	%r14d, %r12d
	jne	LBB0_17
## %bb.15:
	cmpl	%r13d, %r14d
	je	LBB0_17
## %bb.16:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_av_get_pix_fmt_name
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_av_log
LBB0_17:
	cmpl	%r14d, %r12d
	je	LBB0_19
LBB0_18:
	movl	%r13d, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_FF_COMPLIANCE_UNOFFICIAL,8,3   ## @FF_COMPLIANCE_UNOFFICIAL
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incompatible pixel format '%s' for codec '%s', auto-selecting format '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choose_pixel_fmt               ; -- Begin function choose_pixel_fmt
	.p2align	2
_choose_pixel_fmt:                      ; @choose_pixel_fmt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	cbz	x2, LBB0_17
; %bb.1:
	mov	x20, x2
	ldr	x24, [x2]
	cbz	x24, LBB0_17
; %bb.2:
	mov	x23, x1
	mov	x0, x19
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x0]
	mvn	w8, w8
	and	w22, w8, #0x1
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
Lloh0:
	adrp	x25, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	ldr	w21, [x25]
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _FF_COMPLIANCE_UNOFFICIAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FF_COMPLIANCE_UNOFFICIAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.6:
	mov	x23, x21
	b	LBB0_8
LBB0_7:
	ldr	w0, [x23, #8]
	mov	x1, x24
	bl	_get_compliance_unofficial_pix_fmts
	mov	x24, x0
	ldr	w23, [x25]
LBB0_8:
	ldr	w8, [x24]
	cmp	w8, w23
	b.ne	LBB0_10
; %bb.9:
	mov	x26, x23
	b	LBB0_14
LBB0_10:
	add	x24, x24, #4
	mov	x23, x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	mov	x4, #0
	bl	_avcodec_find_best_pix_fmt_of_2
	mov	x21, x0
	ldur	w8, [x24, #-4]
	cmp	w8, w19
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w23, [x24], #4
	ldr	w8, [x25]
	mov	x26, x23
	cmp	w23, w8
	b.ne	LBB0_11
	b	LBB0_14
LBB0_13:
	ldr	w23, [x25]
	mov	x26, x19
LBB0_14:
	cmp	w26, w23
	ccmp	w23, w19, #4, eq
	b.eq	LBB0_16
; %bb.15:
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_av_get_pix_fmt_name
	mov	x24, x0
	ldr	w20, [x20, #8]
	mov	x0, x21
	bl	_av_get_pix_fmt_name
	mov	x5, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x22
	mov	x3, x24
	mov	x4, x20
	bl	_av_log
LBB0_16:
	cmp	w26, w23
	b.eq	LBB0_18
LBB0_17:
	mov	x21, x19
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_FF_COMPLIANCE_UNOFFICIAL,8,3   ; @FF_COMPLIANCE_UNOFFICIAL
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incompatible pixel format '%s' for codec '%s', auto-selecting format '%s'\n"

.subsections_via_symbols
