	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_get_optimal_number_of_taps
_dpp_get_optimal_number_of_taps:        ## @dpp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_PIXEL_FORMAT_FP16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_dc_fixpt_one@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 56(%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	cmpq	%rax, 48(%rbx)
	jne	LBB0_26
LBB0_4:
	movq	64(%rbx), %rax
	cmpq	8(%rbx), %rax
	jle	LBB0_7
## %bb.5:
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	jg	LBB0_26
LBB0_7:
	movabsq	$17179869183, %rcx              ## imm = 0x3FFFFFFFF
	movq	56(%rbx), %rax
	leaq	1(%rcx), %rsi
	cmpq	%rsi, %rax
	je	LBB0_8
## %bb.9:
	cmpq	%rsi, 48(%rbx)
	je	LBB0_10
LBB0_11:
	cmpq	%rsi, 40(%rbx)
	je	LBB0_12
LBB0_13:
	cmpq	%rsi, 32(%rbx)
	jne	LBB0_15
LBB0_14:
	movq	%rcx, 32(%rbx)
LBB0_15:
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	movl	$4, %esi
	cmovel	%esi, %ecx
	movl	%ecx, 16(%rbx)
	movl	4(%rdx), %ecx
	testl	%ecx, %ecx
	cmovel	%esi, %ecx
	movl	%ecx, 20(%rbx)
	movl	8(%rdx), %ecx
	testl	%ecx, %ecx
	movl	$2, %esi
	cmovel	%esi, %ecx
	movl	%ecx, 24(%rbx)
	movl	12(%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.16:
	cmpl	$1, %ecx
	setne	%dl
	andb	%cl, %dl
	movzbl	%dl, %edx
	subl	%edx, %ecx
	movl	%ecx, %esi
LBB0_17:
	movl	%esi, 28(%rbx)
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	$1, %r14d
	cmpl	$0, 8(%rcx)
	jne	LBB0_26
## %bb.18:
	movq	%rax, %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	$1, 16(%rbx)
LBB0_20:
	movq	48(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	$1, 20(%rbx)
LBB0_22:
	movq	40(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	$1, 28(%rbx)
LBB0_24:
	movq	32(%rbx), %rdi
	callq	_IDENTITY_RATIO
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	$1, 24(%rbx)
LBB0_26:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rcx, 56(%rbx)
	movq	%rcx, %rax
	cmpq	%rsi, 48(%rbx)
	jne	LBB0_11
LBB0_10:
	movq	%rcx, 48(%rbx)
	cmpq	%rsi, 40(%rbx)
	jne	LBB0_13
LBB0_12:
	movq	%rcx, 40(%rbx)
	cmpq	%rsi, 32(%rbx)
	je	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXEL_FORMAT_FP16,8,3          ## @PIXEL_FORMAT_FP16
	.comm	_DSCL_DATA_PRCESSING_FIXED_FORMAT,8,3 ## @DSCL_DATA_PRCESSING_FIXED_FORMAT
	.comm	_dc_fixpt_one,8,3               ## @dc_fixpt_one
	.no_dead_strip	_dpp_get_optimal_number_of_taps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_get_optimal_number_of_taps
_dpp_get_optimal_number_of_taps:        ; @dpp_get_optimal_number_of_taps
	.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
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PIXEL_FORMAT_FP16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIXEL_FORMAT_FP16@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSCL_DATA_PRCESSING_FIXED_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x19, #56]
Lloh6:
	adrp	x8, _dc_fixpt_one@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dc_fixpt_one@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	x9, [x19, #48]
	cmp	x9, x8
	b.ne	LBB0_16
LBB0_4:
	ldr	x8, [x19, #64]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x8, x9, #4, ne
	b.gt	LBB0_16
LBB0_6:
	ldr	x8, [x19, #56]
	mov	x9, #17179869184
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x8, #17179869183
	str	x8, [x19, #56]
LBB0_8:
	ldr	x10, [x19, #48]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x9, #17179869183
	str	x9, [x19, #48]
LBB0_10:
	ldr	x10, [x19, #40]
	mov	x9, #17179869184
	cmp	x10, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x10, #17179869183
	str	x10, [x19, #40]
LBB0_12:
	ldr	x10, [x19, #32]
	cmp	x10, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x9, #17179869183
	str	x9, [x19, #32]
LBB0_14:
	ldr	w9, [x2]
	mov	w10, #4
	cmp	w9, #0
	csel	w9, w10, w9, eq
	str	w9, [x19, #16]
	ldr	w9, [x2, #4]
	cmp	w9, #0
	csel	w9, w10, w9, eq
	str	w9, [x19, #20]
	ldr	w9, [x2, #8]
	mov	w10, #2
	cmp	w9, #0
	csel	w9, w10, w9, eq
	str	w9, [x19, #24]
	ldr	w9, [x2, #12]
	cmp	w9, #1
	cset	w11, ne
	bic	w11, w9, w11
	cmp	w9, #0
	csel	w9, w10, w11, eq
	str	w9, [x19, #28]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_17
; %bb.15:
	mov	w0, #1
	b	LBB0_25
LBB0_16:
	mov	w0, #0
	b	LBB0_25
LBB0_17:
	mov	x0, x8
	bl	_IDENTITY_RATIO
	cbz	x0, LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_19:
	ldr	x0, [x19, #48]
	bl	_IDENTITY_RATIO
	cbz	x0, LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #20]
LBB0_21:
	ldr	x0, [x19, #40]
	bl	_IDENTITY_RATIO
	cbz	x0, LBB0_23
; %bb.22:
	mov	w8, #1
	str	w8, [x19, #28]
LBB0_23:
	ldr	x0, [x19, #32]
	bl	_IDENTITY_RATIO
	mov	x8, x0
	mov	w0, #1
	cbz	x8, LBB0_25
; %bb.24:
	str	w0, [x19, #24]
LBB0_25:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXEL_FORMAT_FP16,8,3          ; @PIXEL_FORMAT_FP16
	.comm	_DSCL_DATA_PRCESSING_FIXED_FORMAT,8,3 ; @DSCL_DATA_PRCESSING_FIXED_FORMAT
	.comm	_dc_fixpt_one,8,3               ; @dc_fixpt_one
	.no_dead_strip	_dpp_get_optimal_number_of_taps
.subsections_via_symbols
