	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_crtc_timing_v1
_set_crtc_timing_v1:                    ## @set_crtc_timing_v1
	.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	$248, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movq	$0, -32(%rbp)
	movq	(%rdi), %rax
	movl	128(%rsi), %edi
	leaq	-152(%rbp), %rsi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-152(%rbp), %rax
	movq	%rax, -40(%rbp)
LBB0_2:
	movl	120(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movl	112(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	104(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	96(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	88(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movl	80(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	movl	32(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -136(%rbp)
	movl	72(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movups	56(%rbx), %xmm0
	movaps	%xmm0, -112(%rbp)
	movups	40(%rbx), %xmm0
	movaps	%xmm0, -128(%rbp)
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_le16_to_cpu
	movq	_ATOM_VSYNC_POLARITY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, %r15
	movq	%rax, -144(%rbp)
LBB0_7:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_le16_to_cpu
	movq	_ATOM_INTERLACE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, %r15
	movq	%rax, -144(%rbp)
	movl	32(%rbx), %edi
	incl	%edi
	callq	_cpu_to_le16
	movq	%rax, -136(%rbp)
LBB0_9:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_le16_to_cpu
	movq	_ATOM_DOUBLE_CLOCK_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -144(%rbp)
LBB0_11:
	movq	_SetCRTC_Timing@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rax
	movq	%rax, 112(%rsp)
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, 96(%rsp)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, 80(%rsp)
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 64(%rsp)
	movaps	-144(%rbp), %xmm0
	movaps	-128(%rbp), %xmm1
	movaps	-112(%rbp), %xmm2
	movaps	-96(%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_13
## %bb.12:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	callq	_le16_to_cpu
	movq	_ATOM_HSYNC_POLARITY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, %r15
	movq	%rax, -144(%rbp)
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_ATOM_HSYNC_POLARITY,4,2        ## @ATOM_HSYNC_POLARITY
	.comm	_ATOM_VSYNC_POLARITY,4,2        ## @ATOM_VSYNC_POLARITY
	.comm	_ATOM_INTERLACE,4,2             ## @ATOM_INTERLACE
	.comm	_ATOM_DOUBLE_CLOCK_MODE,4,2     ## @ATOM_DOUBLE_CLOCK_MODE
	.comm	_SetCRTC_Timing,4,2             ## @SetCRTC_Timing
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_set_crtc_timing_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_crtc_timing_v1
_set_crtc_timing_v1:                    ; @set_crtc_timing_v1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x1, #128]
	sub	x1, x29, #96
	blr	x8
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldur	x8, [x29, #-96]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w0, [x23, #120]
	bl	_cpu_to_le16
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w0, [x23, #112]
	bl	_cpu_to_le16
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w0, [x23, #104]
	bl	_cpu_to_le16
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w0, [x23, #96]
	bl	_cpu_to_le16
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	w0, [x23, #88]
	bl	_cpu_to_le16
	mov	x25, x0
	ldr	w0, [x23, #80]
	bl	_cpu_to_le16
	mov	x26, x0
	ldr	w0, [x23, #32]
	bl	_cpu_to_le16
	mov	x28, x0
	ldr	w0, [x23, #72]
	bl	_cpu_to_le16
	mov	x27, x0
	ldp	x21, x20, [x23, #56]
	ldp	x24, x22, [x23, #40]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, #0
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_le16_to_cpu
Lloh3:
	adrp	x8, _ATOM_VSYNC_POLARITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOM_VSYNC_POLARITY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cpu_to_le16
	mov	x19, x0
LBB0_3:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _ATOM_INTERLACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_INTERLACE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cpu_to_le16
	mov	x19, x0
	ldr	w8, [x23, #32]
	add	w0, w8, #1
	bl	_cpu_to_le16
	mov	x28, x0
LBB0_5:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_le16_to_cpu
Lloh9:
	adrp	x8, _ATOM_DOUBLE_CLOCK_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_DOUBLE_CLOCK_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cpu_to_le16
	mov	x19, x0
LBB0_7:
Lloh12:
	adrp	x8, _SetCRTC_Timing@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SetCRTC_Timing@GOTPAGEOFF]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x9, #0
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	csel	x9, xzr, x9, eq
Lloh14:
	ldr	w0, [x8]
	stp	x19, x28, [sp, #56]
	stp	x24, x22, [sp, #72]
	stp	x21, x20, [sp, #88]
	stp	x27, x26, [sp, #104]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	stp	x25, x8, [sp, #120]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x10, x8, [sp, #136]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #152]
	str	xzr, [sp, #168]
	add	x1, sp, #56
	bl	_EXEC_BIOS_CMD_TABLE
Lloh15:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_8:
	mov	x0, #0
	bl	_le16_to_cpu
Lloh18:
	adrp	x8, _ATOM_HSYNC_POLARITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATOM_HSYNC_POLARITY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cpu_to_le16
	mov	x19, x0
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_ATOM_HSYNC_POLARITY,4,2        ; @ATOM_HSYNC_POLARITY
	.comm	_ATOM_VSYNC_POLARITY,4,2        ; @ATOM_VSYNC_POLARITY
	.comm	_ATOM_INTERLACE,4,2             ; @ATOM_INTERLACE
	.comm	_ATOM_DOUBLE_CLOCK_MODE,4,2     ; @ATOM_DOUBLE_CLOCK_MODE
	.comm	_SetCRTC_Timing,4,2             ; @SetCRTC_Timing
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_set_crtc_timing_v1
.subsections_via_symbols
