	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_oif_get_fmt
_s5c73m3_oif_get_fmt:                   ## @s5c73m3_oif_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_oif_sd_to_s5c73m3
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_v4l2_subdev_get_try_format
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	jmp	LBB0_10
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%r12), %ecx
	movq	_RES_ISP@GOTPCREL(%rip), %rax
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.3:
	cmpl	$130, %ecx
	je	LBB0_4
## %bb.5:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.6:
	movq	_S5C73M3_JPEG_FMT@GOTPCREL(%rip), %rcx
	movq	_RES_JPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rcx
	addq	$16, %rcx
	jmp	LBB0_9
LBB0_4:
	movq	_S5C73M3_ISP_FMT@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	8(%r14), %rsi
	movq	(%rax), %rax
	movl	(%rcx), %edx
	movq	(%rsi,%rax,8), %rsi
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_s5c73m3_fill_mbus_fmt
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_S5C73M3_ISP_FMT,4,2            ## @S5C73M3_ISP_FMT
	.comm	_RES_ISP,8,3                    ## @RES_ISP
	.comm	_S5C73M3_JPEG_FMT,4,2           ## @S5C73M3_JPEG_FMT
	.comm	_RES_JPEG,8,3                   ## @RES_JPEG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s5c73m3_oif_get_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_oif_get_fmt
_s5c73m3_oif_get_fmt:                   ; @s5c73m3_oif_get_fmt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_oif_sd_to_s5c73m3
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w2, [x19, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_subdev_get_try_format
	mov	x8, x0
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
	bl	_mutex_lock
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.5:
Lloh3:
	adrp	x8, _S5C73M3_JPEG_FMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S5C73M3_JPEG_FMT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _RES_JPEG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RES_JPEG@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	add	x8, x20, #16
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _S5C73M3_ISP_FMT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5C73M3_ISP_FMT@GOTPAGEOFF]
LBB0_8:
Lloh9:
	adrp	x9, _RES_ISP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RES_ISP@GOTPAGEOFF]
LBB0_9:
	ldr	x10, [x20, #8]
	ldr	x9, [x9]
	ldr	w2, [x8]
	ldr	x1, [x10, x9, lsl #3]
	add	x0, x19, #12
	bl	_s5c73m3_fill_mbus_fmt
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_S5C73M3_ISP_FMT,4,2            ; @S5C73M3_ISP_FMT
	.comm	_RES_ISP,8,3                    ; @RES_ISP
	.comm	_S5C73M3_JPEG_FMT,4,2           ; @S5C73M3_JPEG_FMT
	.comm	_RES_JPEG,8,3                   ; @RES_JPEG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s5c73m3_oif_get_fmt
.subsections_via_symbols
