	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_clock_v6
_program_clock_v6:                      ## @program_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%rbx), %rax
	movl	32(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	movslq	(%r15), %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
	movl	%eax, -40(%rbp)
	cmpq	$0, 24(%r15)
	je	LBB0_4
## %bb.3:
	movq	_PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -36(%rbp)
LBB0_4:
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.5:
	movq	_PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -36(%rbp)
LBB0_6:
	movq	_SetPixelClock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	-40(%rbp), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	cltq
	movq	%rax, 8(%r15)
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	movq	_BP_RESULT_BADINPUT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_BP_RESULT_BADINPUT,4,2         ## @BP_RESULT_BADINPUT
	.comm	_PIXEL_CLOCK_MISC_REF_DIV_SRC,4,2 ## @PIXEL_CLOCK_MISC_REF_DIV_SRC
	.comm	_PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS,4,2 ## @PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS
	.comm	_SetPixelClock,4,2              ## @SetPixelClock
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_program_clock_v6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_clock_v6
_program_clock_v6:                      ; @program_clock_v6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x19, #32]
	add	x1, sp, #8
	blr	x8
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [sp, #24]
	ldrsw	x8, [x19]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]
	orr	w8, w9, w8
	str	w8, [sp, #20]
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]
	orr	w8, w9, w8
	str	w8, [sp, #20]
LBB0_5:
Lloh9:
	adrp	x8, _SetPixelClock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SetPixelClock@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x1, x2, [sp, #16]
	bl	_EXEC_BIOS_CMD_TABLE
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [sp, #16]
	bl	_le32_to_cpu
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	sxtw	x8, w8
	str	x8, [x19, #8]
Lloh12:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	bl	_BREAK_TO_DEBUGGER
Lloh14:
	adrp	x8, _BP_RESULT_BADINPUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BP_RESULT_BADINPUT@GOTPAGEOFF]
LBB0_8:
	ldr	w20, [x8]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_BP_RESULT_BADINPUT,4,2         ; @BP_RESULT_BADINPUT
	.comm	_PIXEL_CLOCK_MISC_REF_DIV_SRC,4,2 ; @PIXEL_CLOCK_MISC_REF_DIV_SRC
	.comm	_PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS,4,2 ; @PIXEL_CLOCK_V6_MISC_DPREFCLK_BYPASS
	.comm	_SetPixelClock,4,2              ; @SetPixelClock
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_program_clock_v6
.subsections_via_symbols
