	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_format
_get_format:                            ## @get_format
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$538976288, -44(%rbp)           ## imm = 0x20202020
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, (%rcx)
	movl	$0, (%rdx)
	movq	_MMAL_ENCODING_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %r13
	subq	%rbx, %r13
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
LBB0_3:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_MMAL_MIN
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	cmpq	$5, %r13
	je	LBB0_8
## %bb.4:
	cmpq	$6, %r13
	jne	LBB0_10
## %bb.5:
	movl	$880178553, %eax                ## imm = 0x34767579
	xorl	(%rbx), %eax
	movzwl	4(%rbx), %ecx
	xorl	$12338, %ecx                    ## imm = 0x3032
	orl	%eax, %ecx
	je	LBB0_12
## %bb.6:
	movl	$1902211183, %eax               ## imm = 0x7161706F
	xorl	(%rbx), %eax
	movzwl	4(%rbx), %ecx
	xorl	$25973, %ecx                    ## imm = 0x6575
	orl	%eax, %ecx
	movl	$1, %eax
	jne	LBB0_17
## %bb.7:
	movq	_MMAL_ENCODING_OPAQUE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movl	$1970697593, %eax               ## imm = 0x75767579
	xorl	(%rbx), %eax
	movzbl	4(%rbx), %ecx
	xorl	$118, %ecx
	orl	%eax, %ecx
	movl	$1, %eax
	jne	LBB0_17
## %bb.9:
	movq	_MMAL_ENCODING_YUVUV128@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	decq	%r13
	movl	$1, %eax
	cmpq	$3, %r13
	ja	LBB0_17
## %bb.11:
	movsbl	-44(%rbp), %edi
	movsbl	-43(%rbp), %esi
	movsbl	-42(%rbp), %edx
	movsbl	-41(%rbp), %ecx
	callq	_MMAL_FOURCC
	movl	%eax, %ecx
	jmp	LBB0_14
LBB0_12:
	movq	_MMAL_ENCODING_I420@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ecx
LBB0_14:
	xorl	%eax, %eax
	movl	%ecx, (%r12)
	testq	%r14, %r14
	je	LBB0_17
## %bb.15:
	incq	%r14
	leaq	L_.str.3(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sscanf
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	$2, %ecx
	jne	LBB0_17
## %bb.16:
	movl	-52(%rbp), %eax
	movl	%eax, (%r15)
	movl	-48(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENCODING_UNKNOWN,4,2      ## @MMAL_ENCODING_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"yuv420"

	.comm	_MMAL_ENCODING_I420,4,2         ## @MMAL_ENCODING_I420
L_.str.1:                               ## @.str.1
	.asciz	"yuvuv"

	.comm	_MMAL_ENCODING_YUVUV128,4,2     ## @MMAL_ENCODING_YUVUV128
L_.str.2:                               ## @.str.2
	.asciz	"opaque"

	.comm	_MMAL_ENCODING_OPAQUE,4,2       ## @MMAL_ENCODING_OPAQUE
L_.str.3:                               ## @.str.3
	.asciz	"%ux%u"

	.no_dead_strip	_get_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_format
_get_format:                            ; @get_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	w8, #538976288
	str	w8, [sp, #12]
	str	wzr, [x3]
	str	wzr, [x2]
Lloh0:
	adrp	x8, _MMAL_ENCODING_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_ENCODING_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	mov	w1, #58
	bl	_strchr
	mov	x22, x0
	cbz	x0, LBB0_2
; %bb.1:
	sub	x24, x22, x23
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
LBB0_3:
	mov	x0, x24
	mov	w1, #4
	bl	_MMAL_MIN
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x23
	bl	_memcpy
	cmp	x24, #5
	b.eq	LBB0_8
; %bb.4:
	cmp	x24, #6
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x23]
	mov	w9, #30073
	movk	w9, #13430, lsl #16
	eor	w8, w8, w9
	ldrh	w9, [x23, #4]
	mov	w10, #12338
	eor	w9, w9, w10
	orr	w8, w8, w9
	cbz	w8, LBB0_13
; %bb.6:
	ldr	w8, [x23]
	mov	w9, #28783
	movk	w9, #29025, lsl #16
	eor	w8, w8, w9
	ldrh	w9, [x23, #4]
	mov	w10, #25973
	eor	w9, w9, w10
	orr	w8, w8, w9
	cbnz	w8, LBB0_17
; %bb.7:
Lloh3:
	adrp	x8, _MMAL_ENCODING_OPAQUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_ENCODING_OPAQUE@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	ldr	w8, [x23]
	mov	w9, #30073
	movk	w9, #30070, lsl #16
	eor	w8, w8, w9
	ldrb	w9, [x23, #4]
	mov	w10, #118
	eor	w9, w9, w10
	orr	w8, w8, w9
	cbnz	w8, LBB0_17
; %bb.9:
Lloh5:
	adrp	x8, _MMAL_ENCODING_YUVUV128@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_ENCODING_YUVUV128@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	sub	x8, x24, #1
	cmp	x8, #3
	b.hi	LBB0_17
; %bb.11:
	ldrsb	w0, [sp, #12]
	ldrsb	w1, [sp, #13]
	ldrsb	w2, [sp, #14]
	ldrsb	w3, [sp, #15]
	bl	_MMAL_FOURCC
	str	w0, [x21]
	cbnz	x22, LBB0_15
LBB0_12:
	mov	w0, #0
	b	LBB0_18
LBB0_13:
Lloh7:
	adrp	x8, _MMAL_ENCODING_I420@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_ENCODING_I420@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	str	w0, [x21]
	cbz	x22, LBB0_12
LBB0_15:
	add	x0, x22, #1
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x20]
	ldr	w8, [sp, #4]
	str	w8, [x19]
	b	LBB0_18
LBB0_17:
	mov	w0, #1
LBB0_18:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENCODING_UNKNOWN,4,2      ; @MMAL_ENCODING_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"yuv420"

	.comm	_MMAL_ENCODING_I420,4,2         ; @MMAL_ENCODING_I420
l_.str.1:                               ; @.str.1
	.asciz	"yuvuv"

	.comm	_MMAL_ENCODING_YUVUV128,4,2     ; @MMAL_ENCODING_YUVUV128
l_.str.2:                               ; @.str.2
	.asciz	"opaque"

	.comm	_MMAL_ENCODING_OPAQUE,4,2       ; @MMAL_ENCODING_OPAQUE
l_.str.3:                               ; @.str.3
	.asciz	"%ux%u"

	.no_dead_strip	_get_format
.subsections_via_symbols
