	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_hw_format
_get_hw_format:                         ## @get_hw_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %ecx
	cmpl	$-1, %ecx
	je	LBB0_4
## %bb.1:
	movq	_hw_pix_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$4, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %ecx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi), %ecx
	addq	$4, %rsi
	cmpl	$-1, %ecx
	jne	LBB0_3
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_pix_fmt,4,2                 ## @hw_pix_fmt
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get HW surface format.\n"

	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.no_dead_strip	_get_hw_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_hw_format
_get_hw_format:                         ; @get_hw_format
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _hw_pix_fmt@GOTPAGE
Lloh1:
	ldr	x9, [x9, _hw_pix_fmt@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	add	x9, x1, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x9], #4
	cmn	w8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh8:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_pix_fmt,4,2                 ; @hw_pix_fmt
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get HW surface format.\n"

	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.no_dead_strip	_get_hw_format
.subsections_via_symbols
