	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_transform_get_optimal_number_of_taps ## -- Begin function dce_transform_get_optimal_number_of_taps
	.p2align	4, 0x90
_dce_transform_get_optimal_number_of_taps: ## @dce_transform_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_TO_DCE_TRANSFORM
	movl	48(%rbx), %edx
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	44(%rbx), %ecx
	cmpl	%ecx, %edx
	cmovgel	%ecx, %edx
LBB0_2:
	movl	40(%rbx), %esi
	movq	%rax, %rdi
	callq	_dce_transform_get_max_num_of_supported_lines
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	%r14d, (%r15)
	jge	LBB0_15
## %bb.3:
	movl	36(%rbx), %edi
	movl	4(%r15), %esi
	xorl	%edx, %edx
	callq	_decide_taps
	movq	%rax, 16(%rbx)
	movl	28(%rbx), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_decide_taps
	movl	%eax, (%rbx)
	movl	32(%rbx), %edi
	movl	4(%r15), %esi
	movl	$1, %edx
	callq	_decide_taps
	movq	%rax, 8(%rbx)
	movl	24(%rbx), %edi
	movl	(%r15), %esi
	movl	$1, %edx
	callq	_decide_taps
	movl	%eax, 4(%rbx)
	movl	28(%rbx), %edi
	callq	_IDENTITY_RATIO
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	cmpl	$0, (%r15)
	movl	(%rbx), %ecx
	jne	LBB0_8
## %bb.5:
	cmpl	%ecx, %r14d
	jg	LBB0_8
## %bb.6:
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.7:
	leal	-1(%r14), %ecx
	movl	%ecx, (%rbx)
LBB0_8:
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_15
LBB0_9:
	movl	24(%rbx), %edi
	callq	_IDENTITY_RATIO
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %r14d
	jg	LBB0_13
## %bb.11:
	cmpl	$2, %ecx
	jl	LBB0_13
## %bb.12:
	decl	%r14d
	movl	%r14d, 4(%rbx)
	movl	%r14d, %ecx
LBB0_13:
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_15
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_transform_get_optimal_number_of_taps ; -- Begin function dce_transform_get_optimal_number_of_taps
	.p2align	2
_dce_transform_get_optimal_number_of_taps: ; @dce_transform_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
	bl	_TO_DCE_TRANSFORM
	ldr	w2, [x19, #48]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #44]
	cmp	w2, w8
	csel	w2, w2, w8, lt
LBB0_2:
	ldr	w1, [x19, #40]
	bl	_dce_transform_get_max_num_of_supported_lines
	ldr	w8, [x21]
	cmp	w8, w0
	b.ge	LBB0_14
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #36]
	ldr	w1, [x21, #4]
	mov	w2, #0
	bl	_decide_taps
	str	x0, [x19, #16]
	ldr	w0, [x19, #28]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_decide_taps
	str	w0, [x19]
	ldr	w0, [x19, #32]
	ldr	w1, [x21, #4]
	mov	w2, #1
	bl	_decide_taps
	str	x0, [x19, #8]
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	mov	w2, #1
	bl	_decide_taps
	str	w0, [x19, #4]
	ldr	w0, [x19, #28]
	bl	_IDENTITY_RATIO
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w9, [x21]
	ldr	w8, [x19]
	cbnz	w9, LBB0_8
; %bb.5:
	cmp	w20, w8
	b.gt	LBB0_8
; %bb.6:
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:
	sub	w8, w20, #1
	str	w8, [x19]
LBB0_8:
	cmp	w8, #2
	b.lt	LBB0_14
LBB0_9:
	ldr	w0, [x19, #24]
	bl	_IDENTITY_RATIO
	cbnz	w0, LBB0_15
; %bb.10:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.gt	LBB0_13
; %bb.11:
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
	sub	w8, w20, #1
	str	w8, [x19, #4]
LBB0_13:
	cmp	w8, #2
	b.ge	LBB0_15
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
