	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa6752hs_get_fmt
_saa6752hs_get_fmt:                     ## @saa6752hs_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_to_state
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	(%rax), %rcx
	movq	_SAA6752HS_VF_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_SAA6752HS_VF_D1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_4:
	movq	_v4l2_format_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 24(%rbx)
	movl	(%rax,%rcx,8), %eax
	movl	%eax, 20(%rbx)
	movq	_MEDIA_BUS_FMT_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SAA6752HS_VF_UNKNOWN,8,3       ## @SAA6752HS_VF_UNKNOWN
	.comm	_SAA6752HS_VF_D1,8,3            ## @SAA6752HS_VF_D1
	.comm	_v4l2_format_table,8,3          ## @v4l2_format_table
	.comm	_MEDIA_BUS_FMT_FIXED,4,2        ## @MEDIA_BUS_FMT_FIXED
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_saa6752hs_get_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa6752hs_get_fmt
_saa6752hs_get_fmt:                     ; @saa6752hs_get_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_to_state
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _SAA6752HS_VF_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SAA6752HS_VF_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _SAA6752HS_VF_D1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAA6752HS_VF_D1@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x0]
LBB0_4:
	mov	w0, #0
Lloh9:
	adrp	x9, _v4l2_format_table@GOTPAGE
Lloh10:
	ldr	x9, [x9, _v4l2_format_table@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	d0, [x9, x8, lsl #3]
	stur	d0, [x19, #20]
Lloh12:
	adrp	x8, _MEDIA_BUS_FMT_FIXED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MEDIA_BUS_FMT_FIXED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh15:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SAA6752HS_VF_UNKNOWN,8,3       ; @SAA6752HS_VF_UNKNOWN
	.comm	_SAA6752HS_VF_D1,8,3            ; @SAA6752HS_VF_D1
	.comm	_v4l2_format_table,8,3          ; @v4l2_format_table
	.comm	_MEDIA_BUS_FMT_FIXED,4,2        ; @MEDIA_BUS_FMT_FIXED
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.no_dead_strip	_saa6752hs_get_fmt
.subsections_via_symbols
