	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pixel_clock_v6
_set_pixel_clock_v6:                    ## @set_pixel_clock_v6
	.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
	subq	$176, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	(%r15), %rax
	movl	60(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	*24(%rax)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%r15), %rax
	movl	56(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	-48(%rbp), %rax
	movq	%rax, -112(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	48(%rbx), %rax
	movq	%rax, -64(%rbp)
	movl	40(%rbx), %edi
	callq	_cpu_to_le16
	movl	%eax, -72(%rbp)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movq	32(%rbx), %rax
	movq	%rax, -88(%rbp)
	movq	(%r15), %rax
	movq	8(%rax), %r12
	movl	28(%rbx), %edi
	callq	_dal_graphics_object_id_get_encoder_id
	movl	%eax, %edi
	callq	*%r12
	movl	%eax, -96(%rbp)
	movq	(%r15), %rax
	movl	24(%rbx), %edi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rax, -104(%rbp)
	movslq	4(%rbx), %rax
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, -120(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -128(%rbp)
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_PIXEL_CLOCK_V6_MISC_REF_DIV_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -128(%rbp)
LBB0_6:
	movq	_SetPixelClock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-64(%rbp), %xmm0
	movups	%xmm0, 64(%rsp)
	movups	-128(%rbp), %xmm0
	movups	-112(%rbp), %xmm1
	movups	-96(%rbp), %xmm2
	movups	-80(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$176, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL,4,2 ## @PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL
	.comm	_PIXEL_CLOCK_V6_MISC_REF_DIV_SRC,4,2 ## @PIXEL_CLOCK_V6_MISC_REF_DIV_SRC
	.comm	_SetPixelClock,4,2              ## @SetPixelClock
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_set_pixel_clock_v6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pixel_clock_v6
_set_pixel_clock_v6:                    ; @set_pixel_clock_v6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	ldr	w0, [x20, #60]
	add	x1, sp, #80
	blr	x8
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	ldr	w0, [x20, #56]
	add	x1, sp, #88
	blr	x8
	cbz	x0, LBB0_7
; %bb.2:
	ldp	x10, x8, [sp, #80]
	ldr	x9, [x20, #48]
	str	x8, [sp, #112]
	stp	x9, x10, [sp, #160]
	ldr	w0, [x20, #40]
	bl	_cpu_to_le16
	str	w0, [sp, #152]
	ldr	w0, [x20]
	bl	_cpu_to_le32
	ldr	x8, [x20, #32]
	stp	x8, x0, [sp, #136]
	ldr	x8, [x21]
	ldr	x22, [x8, #8]
	ldr	w0, [x20, #28]
	bl	_dal_graphics_object_id_get_encoder_id
	blr	x22
	str	w0, [sp, #128]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x20, #24]
	mov	w1, #0
	blr	x8
	str	x0, [sp, #120]
	ldrsw	x8, [x20, #4]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #5
	bl	_cpu_to_le32
	str	x0, [sp, #104]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #96]
	orr	w8, w9, w8
	str	w8, [sp, #96]
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _PIXEL_CLOCK_V6_MISC_REF_DIV_SRC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIXEL_CLOCK_V6_MISC_REF_DIV_SRC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #96]
	orr	w8, w9, w8
	str	w8, [sp, #96]
LBB0_6:
Lloh9:
	adrp	x8, _SetPixelClock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SetPixelClock@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	q0, q1, [sp, #128]
	stp	q0, q1, [sp, #32]
	ldr	q0, [sp, #160]
	str	q0, [sp, #64]
	ldp	q1, q0, [sp, #96]
	stp	q1, q0, [sp]
	mov	x1, sp
	bl	_EXEC_BIOS_CMD_TABLE
Lloh12:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w19, w8, eq
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL,4,2 ; @PIXEL_CLOCK_V6_MISC_FORCE_PROG_PPLL
	.comm	_PIXEL_CLOCK_V6_MISC_REF_DIV_SRC,4,2 ; @PIXEL_CLOCK_V6_MISC_REF_DIV_SRC
	.comm	_SetPixelClock,4,2              ; @SetPixelClock
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_set_pixel_clock_v6
.subsections_via_symbols
