	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_clock_v5
_program_clock_v5:                      ## @program_clock_v5
	.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	$72, %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	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	(%rbx), %rax
	movl	16(%r15), %edi
	leaq	-32(%rbp), %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rax
	movq	%rax, -40(%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_le16
	movl	%eax, -48(%rbp)
	movq	_ATOM_CRTC_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	_PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -64(%rbp)
LBB0_4:
	movq	_SetPixelClock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-64(%rbp), %xmm0
	movups	-48(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	movq	_BP_RESULT_BADINPUT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$72, %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	_ATOM_CRTC_INVALID,8,3          ## @ATOM_CRTC_INVALID
	.comm	_PIXEL_CLOCK_MISC_REF_DIV_SRC,4,2 ## @PIXEL_CLOCK_MISC_REF_DIV_SRC
	.comm	_SetPixelClock,4,2              ## @SetPixelClock
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_program_clock_v5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_clock_v5
_program_clock_v5:                      ; @program_clock_v5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x19, #16]
	add	x1, sp, #40
	blr	x8
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #40]
	str	x8, [sp, #72]
	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_le16
	str	w0, [sp, #64]
Lloh3:
	adrp	x8, _ATOM_CRTC_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOM_CRTC_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #48]
	orr	w8, w9, w8
	str	w8, [sp, #48]
LBB0_3:
Lloh9:
	adrp	x8, _SetPixelClock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SetPixelClock@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [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	w0, w21, w8, eq
	b	LBB0_5
LBB0_4:
	bl	_BREAK_TO_DEBUGGER
Lloh15:
	adrp	x8, _BP_RESULT_BADINPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BP_RESULT_BADINPUT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_BP_RESULT_BADINPUT,4,2         ; @BP_RESULT_BADINPUT
	.comm	_ATOM_CRTC_INVALID,8,3          ; @ATOM_CRTC_INVALID
	.comm	_PIXEL_CLOCK_MISC_REF_DIV_SRC,4,2 ; @PIXEL_CLOCK_MISC_REF_DIV_SRC
	.comm	_SetPixelClock,4,2              ; @SetPixelClock
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_program_clock_v5
.subsections_via_symbols
