	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_cpmem_interlaced_scan      ## -- Begin function ipu_cpmem_interlaced_scan
	.p2align	4, 0x90
_ipu_cpmem_interlaced_scan:             ## @ipu_cpmem_interlaced_scan
	.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
	movl	%esi, %ecx
	negl	%ecx
	movl	%esi, %eax
	cmovnsl	%ecx, %eax
	shrl	$3, %ecx
	movl	$1048576, %ebx                  ## imm = 0x100000
	subl	%ecx, %ebx
	movl	%esi, %r13d
	shrl	$3, %r13d
	testl	%esi, %esi
	cmovsl	%ebx, %r13d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r15
	leal	(%rax,%rax), %r14d
	decl	%r14d
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	movl	%r14d, %r12d
	jmpq	*%rdx
LBB0_2:
	shrl	%eax
LBB0_3:
	decl	%eax
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movq	_IPU_FIELD_SO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_ILO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_ipu_ch_param_write_field
	movq	_IPU_FIELD_SLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ipu_ch_param_write_field
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.7:
	movq	_IPU_FIELD_SLUV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipu_ch_param_write_field       ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_IPU_FIELD_SO,4,2               ## @IPU_FIELD_SO
	.comm	_IPU_FIELD_ILO,4,2              ## @IPU_FIELD_ILO
	.comm	_IPU_FIELD_SLY,4,2              ## @IPU_FIELD_SLY
	.comm	_IPU_FIELD_SLUV,4,2             ## @IPU_FIELD_SLUV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_cpmem_interlaced_scan      ; -- Begin function ipu_cpmem_interlaced_scan
	.p2align	2
_ipu_cpmem_interlaced_scan:             ; @ipu_cpmem_interlaced_scan
	.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, x0
	neg	w8, w1
	mov	w9, #1048576
	sub	w8, w9, w8, lsr #3
	lsr	w9, w1, #3
	cmp	w1, #0
	csel	w21, w8, w9, lt
	cneg	w8, w1, mi
	lsl	w9, w8, #1
	sub	w20, w9, #1
	sub	w9, w2, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	mov	x22, x20
	br	x11
LBB0_2:
	lsr	w8, w8, #1
LBB0_3:
	sub	w22, w8, #1
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
Lloh2:
	adrp	x8, _IPU_FIELD_SO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPU_FIELD_SO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_ipu_ch_param_write_field
Lloh5:
	adrp	x8, _IPU_FIELD_ILO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPU_FIELD_ILO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ipu_ch_param_write_field
Lloh8:
	adrp	x8, _IPU_FIELD_SLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPU_FIELD_SLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ipu_ch_param_write_field
	cbz	w22, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _IPU_FIELD_SLUV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPU_FIELD_SLUV@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	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
	b	_ipu_ch_param_write_field
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_IPU_FIELD_SO,4,2               ; @IPU_FIELD_SO
	.comm	_IPU_FIELD_ILO,4,2              ; @IPU_FIELD_ILO
	.comm	_IPU_FIELD_SLY,4,2              ; @IPU_FIELD_SLY
	.comm	_IPU_FIELD_SLUV,4,2             ; @IPU_FIELD_SLUV
.subsections_via_symbols
