	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_pipe_downscale_amount
_skl_pipe_downscale_amount:             ## @skl_pipe_downscale_amount
	.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	%rdi, %rbx
	movl	$1, %edi
	callq	_u32_to_fixed16
	cmpl	$0, 24(%rbx)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movl	8(%rbx), %esi
	cmpl	$65536, %esi                    ## imm = 0x10000
	jb	LBB0_4
## %bb.3:
	movzwl	%si, %r14d
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	sarl	$16, %esi
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	callq	_div_fixed16
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_div_fixed16
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_u32_to_fixed16
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_max_fixed16
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_u32_to_fixed16
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_max_fixed16
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mul_fixed16                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_skl_pipe_downscale_amount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_pipe_downscale_amount
_skl_pipe_downscale_amount:             ; @skl_pipe_downscale_amount
	.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
	mov	w0, #1
	bl	_u32_to_fixed16
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	and	w20, w8, #0xffff
	cmp	w8, #16, lsl #12                ; =65536
	ccmp	w20, #0, #4, hs
	b.ne	LBB0_4
LBB0_3:
	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
LBB0_4:
	asr	w1, w8, #16
	ldp	w0, w21, [x19]
	bl	_div_fixed16
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_div_fixed16
	mov	x20, x0
	mov	w0, #1
	bl	_u32_to_fixed16
	mov	x1, x0
	mov	x0, x19
	bl	_max_fixed16
	mov	x19, x0
	mov	w0, #1
	bl	_u32_to_fixed16
	mov	x1, x0
	mov	x0, x20
	bl	_max_fixed16
	mov	x1, x0
	mov	x0, x19
	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	_mul_fixed16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_skl_pipe_downscale_amount
.subsections_via_symbols
