	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_compute_linetime_wm
_hsw_compute_linetime_wm:               ## @hsw_compute_linetime_wm
	.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	24(%rdi), %edi
	callq	_to_intel_atomic_state
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	imull	$8000, 16(%rbx), %edi           ## imm = 0x1F40
	movq	8(%rbx), %rsi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %r14d
	imull	$8000, 16(%rbx), %edi           ## imm = 0x1F40
	movq	(%r15), %rsi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %edi
	callq	_PIPE_WM_LINETIME_IPS_LINETIME
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PIPE_WM_LINETIME_TIME
	movl	%eax, %r14d
	orl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hsw_compute_linetime_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_compute_linetime_wm
_hsw_compute_linetime_wm:               ; @hsw_compute_linetime_wm
	.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
	ldr	w0, [x0, #24]
	bl	_to_intel_atomic_state
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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_5:
	ldr	w8, [x19, #16]
	mov	w22, #8000
	mul	w0, w8, w22
	ldr	x1, [x19, #8]
	bl	_DIV_ROUND_CLOSEST
	mov	x21, x0
	ldr	w8, [x19, #16]
	mul	w0, w8, w22
	ldr	x1, [x20]
	bl	_DIV_ROUND_CLOSEST
	bl	_PIPE_WM_LINETIME_IPS_LINETIME
	mov	x19, x0
	mov	x0, x21
	bl	_PIPE_WM_LINETIME_TIME
	orr	w0, w0, w19
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hsw_compute_linetime_wm
.subsections_via_symbols
