	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_set_fmt
_s5c73m3_set_fmt:                       ## @s5c73m3_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	callq	_sensor_sd_to_s5c73m3
	movq	%rax, %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_s5c73m3_try_format
	movq	(%rbx), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_v4l2_subdev_get_try_format
	movl	12(%rbx), %ecx
	movl	%ecx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	cmpl	$128, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rax
	movq	16(%r15), %rcx
	movq	_RES_ISP@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rax
	movq	16(%r15), %rcx
	movq	_RES_JPEG@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_10
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_9
LBB0_10:
	movl	$1, (%r15)
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_RES_ISP,8,3                    ## @RES_ISP
	.comm	_RES_JPEG,8,3                   ## @RES_JPEG
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_s5c73m3_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_set_fmt
_s5c73m3_set_fmt:                       ; @s5c73m3_set_fmt
	.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	x22, x2
	mov	x21, x1
	mov	x23, x0
	str	xzr, [sp, #8]
	bl	_sensor_sd_to_s5c73m3
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_s5c73m3_try_format
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w2, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	bl	_v4l2_subdev_get_try_format
	mov	w21, #0
	ldr	w8, [x22, #12]
	str	w8, [x0]
	b	LBB0_10
LBB0_2:
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w2, #129
	b.ne	LBB0_8
; %bb.4:
	mov	w21, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x10, _RES_ISP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RES_ISP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w21, #0
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #16]
Lloh5:
	adrp	x10, _RES_JPEG@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RES_JPEG@GOTPAGEOFF]
LBB0_6:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_RES_ISP,8,3                    ; @RES_ISP
	.comm	_RES_JPEG,8,3                   ; @RES_JPEG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_s5c73m3_set_fmt
.subsections_via_symbols
