	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_pix_fmt_swap_endianness     ## -- Begin function av_pix_fmt_swap_endianness
	.p2align	4, 0x90
_av_pix_fmt_swap_endianness:            ## @av_pix_fmt_swap_endianness
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_strlen
	cmpl	$1, %eax
	jle	LBB0_2
## %bb.3:
	movq	(%rbx), %rsi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_av_strlcpy
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	addq	$-2, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorb	$14, (%rbx)
	leaq	-32(%rbp), %rdi
	callq	_get_pix_fmt_internal
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"be"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_pix_fmt_swap_endianness     ; -- Begin function av_pix_fmt_swap_endianness
	.p2align	2
_av_pix_fmt_swap_endianness:            ; @av_pix_fmt_swap_endianness
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	bl	_strlen
	cmp	w0, #1
	b.le	LBB0_4
; %bb.2:
	ldr	x1, [x19]
	add	x19, sp, #8
	add	x0, sp, #8
	mov	w2, #16
	bl	_av_strlcpy
	add	x0, sp, #8
	bl	_strlen
	add	x8, x19, w0, sxtw
	sub	x19, x8, #2
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldrb	w8, [x19]
	eor	w8, w8, #0xe
	strb	w8, [x19]
	add	x0, sp, #8
	bl	_get_pix_fmt_internal
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"be"

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

.subsections_via_symbols
