	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function se401_send_size
_se401_send_size:                       ## @se401_send_size
	.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
	movl	%edx, %r14d
	movl	%esi, %ecx
	movq	%rdi, %r12
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.11:
	movq	8(%r12), %rsi
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%rsi,%rdx,4)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r12), %rdi
	cmpl	%r14d, (%rdi,%rdx,4)
	jne	LBB0_14
	jmp	LBB0_2
LBB0_15:
	movl	$3, %r15d
	jmp	LBB0_16
LBB0_1:
	xorl	%edx, %edx
LBB0_2:
	movl	$3, %r15d
	cmpl	%eax, %edx
	jge	LBB0_16
## %bb.3:
	movq	8(%r12), %r10
	leal	(%rcx,%rcx), %r11d
	leal	(%r14,%r14), %r8d
	leal	(,%rcx,4), %edi
	leal	(,%r14,4), %r9d
	movl	%edx, %edx
	movl	$3, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpl	%edx, %eax
	jle	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdx,4), %ebx
	cmpl	%r11d, %ebx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rsi
	cmpl	%r8d, (%rsi,%rdx,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$64, %r15d
	movl	%r8d, %r14d
	movl	%r11d, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edi, %ebx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rsi
	cmpl	%r9d, (%rsi,%rdx,4)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$66, %r15d
	movl	%r9d, %r14d
	movl	%edi, %ecx
	jmp	LBB0_10
LBB0_16:
	movq	_SE401_REQ_SET_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movq	%r12, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_se401_sndctrl
	movq	_SE401_REQ_SET_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_se401_sndctrl
	movq	_SE401_OPERATINGMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_se401_set_feature
	cmpl	$3, %r15d
	jne	LBB0_17
## %bb.18:
	movq	_FMT_BAYER@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_FMT_JANGGU@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SE401_REQ_SET_WIDTH,4,2        ## @SE401_REQ_SET_WIDTH
	.comm	_SE401_REQ_SET_HEIGHT,4,2       ## @SE401_REQ_SET_HEIGHT
	.comm	_SE401_OPERATINGMODE,4,2        ## @SE401_OPERATINGMODE
	.comm	_FMT_BAYER,4,2                  ## @FMT_BAYER
	.comm	_FMT_JANGGU,4,2                 ## @FMT_JANGGU
	.no_dead_strip	_se401_send_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function se401_send_size
_se401_send_size:                       ; @se401_send_size
	.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	x20, x2
	mov	x3, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w3
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x19, #16]
	ldr	w11, [x11, x9, lsl #2]
	cmp	w11, w20
	b.ne	LBB0_2
; %bb.5:
	cmp	w9, w8
	b.ge	LBB0_13
LBB0_6:
	lsl	w10, w3, #1
	lsl	w11, w20, #1
	lsl	w12, w3, #2
	lsl	w13, w20, #2
	mov	w17, w9
	ldr	x14, [x19, #8]
	mov	w21, #3
	mov	w15, #64
	mov	w16, #66
	lsl	x17, x17, #2
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x17, x17, #4
	add	w9, w9, #1
	cmp	w8, w9
	b.le	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x14, x17]
	cmp	w0, w10
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x19, #16]
	ldr	w1, [x1, x17]
	cmp	w1, w11
	csel	w21, w21, w15, ne
	csel	w20, w20, w11, ne
	csel	w3, w3, w10, ne
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, w12
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #16]
	ldr	w0, [x0, x17]
	cmp	w0, w13
	csel	w21, w21, w16, ne
	csel	w20, w20, w13, ne
	csel	w3, w3, w12, ne
	b	LBB0_7
LBB0_12:
	mov	w9, #0
	cmp	w9, w8
	b.lt	LBB0_6
LBB0_13:
	mov	w21, #3
LBB0_14:
Lloh0:
	adrp	x8, _SE401_REQ_SET_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SE401_REQ_SET_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_se401_sndctrl
Lloh3:
	adrp	x8, _SE401_REQ_SET_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SE401_REQ_SET_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x19
	mov	x3, x20
	mov	x4, #0
	mov	w5, #0
	bl	_se401_sndctrl
Lloh6:
	adrp	x8, _SE401_OPERATINGMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SE401_OPERATINGMODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_se401_set_feature
Lloh9:
	adrp	x8, _FMT_BAYER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FMT_BAYER@GOTPAGEOFF]
Lloh11:
	adrp	x9, _FMT_JANGGU@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FMT_JANGGU@GOTPAGEOFF]
	cmp	w21, #3
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SE401_REQ_SET_WIDTH,4,2        ; @SE401_REQ_SET_WIDTH
	.comm	_SE401_REQ_SET_HEIGHT,4,2       ; @SE401_REQ_SET_HEIGHT
	.comm	_SE401_OPERATINGMODE,4,2        ; @SE401_OPERATINGMODE
	.comm	_FMT_BAYER,4,2                  ; @FMT_BAYER
	.comm	_FMT_JANGGU,4,2                 ; @FMT_JANGGU
	.no_dead_strip	_se401_send_size
.subsections_via_symbols
