	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_vl_rsz_get_fmt
_zx_vl_rsz_get_fmt:                     ## @zx_vl_rsz_get_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %edx
	leal	-128(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_6
## %bb.1:
	movl	$51, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.2:
	movq	_RSZ_VL_FMT_YCBCR422@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movl	$72, %ecx
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.4:
	movq	_RSZ_VL_FMT_YCBCR420@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_RSZ_VL_FMT_YCBCR444@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSZ_VL_FMT_YCBCR420,4,2        ## @RSZ_VL_FMT_YCBCR420
	.comm	_RSZ_VL_FMT_YCBCR422,4,2        ## @RSZ_VL_FMT_YCBCR422
	.comm	_RSZ_VL_FMT_YCBCR444,4,2        ## @RSZ_VL_FMT_YCBCR444
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pixel format %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_zx_vl_rsz_get_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_vl_rsz_get_fmt
_zx_vl_rsz_get_fmt:                     ; @zx_vl_rsz_get_fmt
	.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
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #51
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _RSZ_VL_FMT_YCBCR422@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSZ_VL_FMT_YCBCR422@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	w9, #72
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _RSZ_VL_FMT_YCBCR420@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RSZ_VL_FMT_YCBCR420@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x8, _RSZ_VL_FMT_YCBCR444@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSZ_VL_FMT_YCBCR444@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RSZ_VL_FMT_YCBCR420,4,2        ; @RSZ_VL_FMT_YCBCR420
	.comm	_RSZ_VL_FMT_YCBCR422,4,2        ; @RSZ_VL_FMT_YCBCR422
	.comm	_RSZ_VL_FMT_YCBCR444,4,2        ; @RSZ_VL_FMT_YCBCR444
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pixel format %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_zx_vl_rsz_get_fmt
.subsections_via_symbols
