	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp2_get_optimal_number_of_taps ## -- Begin function dpp2_get_optimal_number_of_taps
	.p2align	4, 0x90
_dpp2_get_optimal_number_of_taps:       ## @dpp2_get_optimal_number_of_taps
	.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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rcx
	movq	72(%rsi), %rax
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.1:
	movq	80(%rbx), %rdx
	cmpq	8(%rbx), %rdx
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rdx
	movq	(%rdx), %rdx
	movq	_DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdx
	movq	_PIXEL_FORMAT_FP16@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	cmpq	(%rsi), %rdx
	je	LBB0_47
LBB0_4:
	cmpq	%rcx, %rax
	jle	LBB0_7
## %bb.5:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	xorl	%r12d, %r12d
	cmpq	%rcx, %rax
	jg	LBB0_47
LBB0_7:
	movabsq	$34359738367, %rax              ## imm = 0x7FFFFFFFF
	movq	64(%rbx), %rdi
	leaq	1(%rax), %rcx
	cmpq	%rcx, %rdi
	je	LBB0_8
## %bb.9:
	cmpq	%rcx, 56(%rbx)
	je	LBB0_10
LBB0_11:
	cmpq	%rcx, 48(%rbx)
	je	LBB0_12
LBB0_13:
	cmpq	%rcx, 40(%rbx)
	jne	LBB0_15
LBB0_14:
	movq	%rax, 40(%rbx)
LBB0_15:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.19:
	movl	%eax, 24(%rbx)
	jmp	LBB0_20
LBB0_8:
	movq	%rax, 64(%rbx)
	movq	%rax, %rdi
	cmpq	%rcx, 56(%rbx)
	jne	LBB0_11
LBB0_10:
	movq	%rax, 56(%rbx)
	cmpq	%rcx, 48(%rbx)
	jne	LBB0_13
LBB0_12:
	movq	%rax, 48(%rbx)
	cmpq	%rcx, 40(%rbx)
	je	LBB0_14
	jmp	LBB0_15
LBB0_16:
	callq	_dc_fixpt_ceil
	cmpl	$5, %eax
	jl	LBB0_18
## %bb.17:
	movl	$8, 24(%rbx)
	jmp	LBB0_20
LBB0_18:
	movl	$4, 24(%rbx)
LBB0_20:
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_21
## %bb.24:
	movl	%eax, 28(%rbx)
	jmp	LBB0_25
LBB0_21:
	movq	56(%rbx), %rdi
	callq	_dc_fixpt_ceil
	cmpl	$5, %eax
	jl	LBB0_23
## %bb.22:
	movl	$8, 28(%rbx)
	jmp	LBB0_25
LBB0_23:
	movl	$4, 28(%rbx)
LBB0_25:
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_26
## %bb.29:
	movl	%eax, 32(%rbx)
	jmp	LBB0_30
LBB0_26:
	movq	40(%rbx), %rdi
	callq	_dc_fixpt_ceil
	cmpl	$5, %eax
	jl	LBB0_28
## %bb.27:
	movl	$4, 32(%rbx)
	jmp	LBB0_30
LBB0_28:
	movl	$2, 32(%rbx)
LBB0_30:
	movl	12(%r15), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.34:
	cmpl	$1, %eax
	je	LBB0_37
## %bb.35:
	movl	%eax, %ecx
	andl	$1, %ecx
	je	LBB0_37
## %bb.36:
	decl	%eax
LBB0_37:
	movl	%eax, 36(%rbx)
	jmp	LBB0_38
LBB0_31:
	movq	48(%rbx), %rdi
	callq	_dc_fixpt_ceil
	cmpl	$5, %eax
	jl	LBB0_33
## %bb.32:
	movl	$4, 36(%rbx)
	jmp	LBB0_38
LBB0_33:
	movl	$2, 36(%rbx)
LBB0_38:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	$1, %r12d
	cmpl	$0, 8(%rax)
	jne	LBB0_47
## %bb.39:
	movq	64(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movl	$1, 24(%rbx)
LBB0_41:
	movq	56(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	$1, 28(%rbx)
LBB0_43:
	movq	48(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movl	$1, 36(%rbx)
LBB0_45:
	movq	40(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movl	$1, 32(%rbx)
LBB0_47:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSCL_DATA_PRCESSING_FIXED_FORMAT,8,3 ## @DSCL_DATA_PRCESSING_FIXED_FORMAT
	.comm	_PIXEL_FORMAT_FP16,8,3          ## @PIXEL_FORMAT_FP16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp2_get_optimal_number_of_taps ; -- Begin function dpp2_get_optimal_number_of_taps
	.p2align	2
_dpp2_get_optimal_number_of_taps:       ; @dpp2_get_optimal_number_of_taps
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #72]
	ldr	x9, [x1]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	ldr	x10, [x19, #80]
	ldr	x11, [x19, #8]
	cmp	x10, x11
	b.eq	LBB0_4
; %bb.2:
	ldr	x10, [x20, #8]
	ldr	x10, [x10]
Lloh0:
	adrp	x11, _DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x19, #16]
Lloh3:
	adrp	x11, _PIXEL_FORMAT_FP16@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PIXEL_FORMAT_FP16@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_17
LBB0_4:
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x8, x9, #4, ne
	b.gt	LBB0_17
LBB0_6:
	ldr	x0, [x19, #64]
	mov	x8, #34359738368
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, #34359738367
	str	x0, [x19, #64]
LBB0_8:
	ldr	x9, [x19, #56]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x8, #34359738367
	str	x8, [x19, #56]
LBB0_10:
	ldr	x9, [x19, #48]
	mov	x8, #34359738368
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x9, #34359738367
	str	x9, [x19, #48]
LBB0_12:
	ldr	x9, [x19, #40]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x8, #34359738367
	str	x8, [x19, #40]
LBB0_14:
	ldr	w8, [x21]
	cbnz	w8, LBB0_19
; %bb.15:
	bl	_dc_fixpt_ceil
	cmp	w0, #5
	b.lt	LBB0_18
; %bb.16:
	mov	w8, #8
	b	LBB0_19
LBB0_17:
	mov	w0, #0
	b	LBB0_45
LBB0_18:
	mov	w8, #4
LBB0_19:
	str	w8, [x19, #24]
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_23
; %bb.20:
	ldr	x0, [x19, #56]
	bl	_dc_fixpt_ceil
	cmp	w0, #5
	b.lt	LBB0_22
; %bb.21:
	mov	w8, #8
	b	LBB0_23
LBB0_22:
	mov	w8, #4
LBB0_23:
	str	w8, [x19, #28]
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_27
; %bb.24:
	ldr	x0, [x19, #40]
	bl	_dc_fixpt_ceil
	cmp	w0, #5
	b.lt	LBB0_26
; %bb.25:
	mov	w8, #4
	b	LBB0_27
LBB0_26:
	mov	w8, #2
LBB0_27:
	str	w8, [x19, #32]
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_31
; %bb.28:
	subs	w9, w8, #1
	b.eq	LBB0_34
; %bb.29:
	tbz	w8, #0, LBB0_34
; %bb.30:
	str	w9, [x19, #36]
	b	LBB0_35
LBB0_31:
	ldr	x0, [x19, #48]
	bl	_dc_fixpt_ceil
	cmp	w0, #5
	b.lt	LBB0_33
; %bb.32:
	mov	w8, #4
	b	LBB0_34
LBB0_33:
	mov	w8, #2
LBB0_34:
	str	w8, [x19, #36]
LBB0_35:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_37
; %bb.36:
	mov	w0, #1
	b	LBB0_45
LBB0_37:
	ldr	x0, [x19, #64]
	bl	_IDENTITY_RATIO
	cbz	x0, LBB0_39
; %bb.38:
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_39:
	ldr	x0, [x19, #56]
	bl	_IDENTITY_RATIO
	cbz	x0, LBB0_41
; %bb.40:
	mov	w8, #1
	str	w8, [x19, #28]
LBB0_41:
	ldr	x0, [x19, #48]
	bl	_IDENTITY_RATIO
	cbz	x0, LBB0_43
; %bb.42:
	mov	w8, #1
	str	w8, [x19, #36]
LBB0_43:
	ldr	x0, [x19, #40]
	bl	_IDENTITY_RATIO
	mov	x8, x0
	mov	w0, #1
	cbz	x8, LBB0_45
; %bb.44:
	str	w0, [x19, #32]
LBB0_45:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DSCL_DATA_PRCESSING_FIXED_FORMAT,8,3 ; @DSCL_DATA_PRCESSING_FIXED_FORMAT
	.comm	_PIXEL_FORMAT_FP16,8,3          ; @PIXEL_FORMAT_FP16
.subsections_via_symbols
