	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_crtc_using_dtd_timing_v3
_set_crtc_using_dtd_timing_v3:          ## @set_crtc_using_dtd_timing_v3
	.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	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	(%rdi), %rax
	movl	96(%rsi), %edi
	leaq	-36(%rbp), %rsi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-36(%rbp), %eax
	movl	%eax, -56(%rbp)
LBB0_2:
	movl	64(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	88(%rbx), %edi
	subl	64(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	40(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movl	80(%rbx), %edi
	subl	40(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	movl	72(%rbx), %edi
	subl	64(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movl	56(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -104(%rbp)
	movl	48(%rbx), %edi
	subl	40(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, %r15
	movq	%rax, -120(%rbp)
	movl	32(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_le16_to_cpu
	movq	_ATOM_VSYNC_POLARITY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, %r12
	movq	%rax, -128(%rbp)
LBB0_7:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_le16_to_cpu
	movq	_ATOM_INTERLACE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, %r12
	movq	%rax, -128(%rbp)
	movq	%r15, %rdi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -120(%rbp)
LBB0_9:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_le16_to_cpu
	orl	$256, %eax                      ## imm = 0x100
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -128(%rbp)
LBB0_11:
	movq	_setcrtc_usingdtdtiming@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, 64(%rsp)
	movaps	-128(%rbp), %xmm0
	movaps	-112(%rbp), %xmm1
	movaps	-96(%rbp), %xmm2
	movaps	-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_13
## %bb.12:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$176, %rsp
	popq	%rbx
	popq	%r12
	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, %r12
	movq	%rax, -128(%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	_setcrtc_usingdtdtiming,4,2     ## @setcrtc_usingdtdtiming
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_set_crtc_using_dtd_timing_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_crtc_using_dtd_timing_v3
_set_crtc_using_dtd_timing_v3:          ; @set_crtc_using_dtd_timing_v3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x22, x1
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x1, #96]
	sub	x1, x29, #84
	blr	x8
	mov	x20, x0
	ldur	w8, [x29, #-84]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w0, [x22, #64]
	bl	_cpu_to_le16
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x22, #88]
	ldr	w9, [x22, #64]
	sub	w0, w8, w9
	bl	_cpu_to_le16
	mov	x21, x0
	ldr	w0, [x22, #40]
	bl	_cpu_to_le16
	mov	x23, x0
	ldr	w8, [x22, #80]
	ldr	w9, [x22, #40]
	sub	w0, w8, w9
	bl	_cpu_to_le16
	mov	x24, x0
	ldr	w8, [x22, #72]
	ldr	w9, [x22, #64]
	sub	w0, w8, w9
	bl	_cpu_to_le16
	mov	x25, x0
	ldr	w0, [x22, #56]
	bl	_cpu_to_le16
	mov	x26, x0
	ldr	w8, [x22, #48]
	ldr	w9, [x22, #40]
	sub	w0, w8, w9
	bl	_cpu_to_le16
	mov	x28, x0
	ldr	w0, [x22, #32]
	bl	_cpu_to_le16
	mov	x27, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, #0
	ldr	x8, [x22, #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, [x22, #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
	mov	x0, x28
	bl	_le16_to_cpu
	add	w0, w0, #1
	bl	_cpu_to_le16
	mov	x28, x0
LBB0_5:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_le16_to_cpu
	orr	w0, w0, #0x100
	bl	_cpu_to_le16
	mov	x19, x0
LBB0_7:
	cmp	x20, #0
Lloh9:
	adrp	x8, _setcrtc_usingdtdtiming@GOTPAGE
Lloh10:
	ldr	x8, [x8, _setcrtc_usingdtdtiming@GOTPAGEOFF]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	csel	w9, wzr, w9, eq
Lloh11:
	ldr	w0, [x8]
	stp	x19, x28, [sp, #24]
	stp	x27, x26, [sp, #40]
	stp	x25, x24, [sp, #56]
	stp	x23, x21, [sp, #72]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [sp, #88]
	stp	w9, wzr, [sp, #96]
	add	x1, sp, #24
	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
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	csel	w0, w9, w8, eq
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_8:
	mov	x0, #0
	bl	_le16_to_cpu
Lloh15:
	adrp	x8, _ATOM_HSYNC_POLARITY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATOM_HSYNC_POLARITY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cpu_to_le16
	mov	x19, x0
	ldr	x8, [x22, #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	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	_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	_setcrtc_usingdtdtiming,4,2     ; @setcrtc_usingdtdtiming
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_set_crtc_using_dtd_timing_v3
.subsections_via_symbols
