	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function se401_set_pict
_se401_set_pict:                        ## @se401_set_pict
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rcx
	movq	_VIDEO_PALETTE_RGB24@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rcx, (%rdi)
	movl	8(%rsi), %eax
	cmpl	8(%rdi), %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ecx
	sarl	$10, %ecx
	movl	%ecx, 12(%rbx)
	movl	$64, %edx
	subl	%ecx, %edx
	movl	%edx, 16(%rbx)
	movl	%eax, 8(%rbx)
LBB0_3:
	movq	16(%r14), %rsi
	cmpq	24(%rbx), %rsi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_se401_set_exposure
LBB0_5:
	xorl	%eax, %eax
	cmpl	$32768, 24(%r14)                ## imm = 0x8000
	setge	%al
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_se401_send_pict
	movq	%rbx, %rdi
	callq	_se401_send_pict
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_PALETTE_RGB24,8,3        ## @VIDEO_PALETTE_RGB24
	.no_dead_strip	_se401_set_pict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function se401_set_pict
_se401_set_pict:                        ; @se401_set_pict
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _VIDEO_PALETTE_RGB24@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIDEO_PALETTE_RGB24@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	x8, [x0]
	ldr	w8, [x1, #8]
	ldr	w9, [x0, #8]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
	asr	w9, w8, #10
	mov	w10, #64
	sub	w10, w10, w9
	stp	w9, w10, [x19, #12]
	str	w8, [x19, #8]
LBB0_3:
	ldr	x1, [x20, #16]
	ldr	x8, [x19, #24]
	cmp	x1, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_se401_set_exposure
LBB0_5:
	ldr	w8, [x20, #24]
	cmp	w8, #8, lsl #12                 ; =32768
	cset	w8, ge
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_se401_send_pict
	mov	x0, x19
	bl	_se401_send_pict
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_PALETTE_RGB24,8,3        ; @VIDEO_PALETTE_RGB24
	.no_dead_strip	_se401_set_pict
.subsections_via_symbols
