	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_mgr_set_timings
_dispc_mgr_set_timings:                 ## @dispc_mgr_set_timings
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movups	(%rdx), %xmm0
	movups	16(%rdx), %xmm1
	movaps	%xmm0, -80(%rbp)
	movq	32(%rdx), %rax
	movq	%rax, -48(%rbp)
	movaps	%xmm1, -64(%rbp)
	movl	%esi, %esi
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DSSDBG
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dispc_mgr_check_timings
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_9
LBB0_2:
	movl	%r13d, %edi
	callq	_dss_mgr_is_lcd
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	__dispc_mgr_set_lcd_timings
	movl	-72(%rbp), %ecx
	movl	-60(%rbp), %edi
	addl	-80(%rbp), %ecx
	addl	-68(%rbp), %ecx
	addl	-64(%rbp), %ecx
	addl	-76(%rbp), %edi
	addl	-56(%rbp), %edi
	addl	-52(%rbp), %edi
	movl	32(%rbx), %esi
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DSSDBG
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %ecx
	movl	-56(%rbp), %r8d
	movl	-60(%rbp), %r9d
	movl	-52(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DSSDBG
	movl	-44(%rbp), %edi
	movq	_DISPLAY_FLAGS_VSYNC_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISPLAY_FLAGS_VSYNC_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vm_flag_to_int
	cltq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	movq	_DISPLAY_FLAGS_HSYNC_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISPLAY_FLAGS_HSYNC_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vm_flag_to_int
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	movq	_DISPLAY_FLAGS_PIXDATA_POSEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISPLAY_FLAGS_PIXDATA_NEGEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vm_flag_to_int
	movl	%eax, %r15d
	movl	-44(%rbp), %edi
	movq	_DISPLAY_FLAGS_DE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISPLAY_FLAGS_DE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vm_flag_to_int
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	movq	_DISPLAY_FLAGS_SYNC_POSEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISPLAY_FLAGS_SYNC_NEGEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vm_flag_to_int
	leaq	L_.str.3(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_DSSDBG
	leaq	L_.str.4(%rip), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_DSSDBG
	jmp	LBB0_8
LBB0_4:
	movl	-44(%rbp), %eax
	movq	_DISPLAY_FLAGS_INTERLACED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	shrl	-76(%rbp)
LBB0_6:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_DISPC_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DISPLAY_FLAGS_DOUBLECLK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movq	%r14, %rdi
	movl	$19, %ecx
	movl	$17, %r8d
	callq	_REG_FLD_MOD
LBB0_8:
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dispc_mgr_set_size
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d xres %u yres %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"pck %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"vsync_level %d hsync_level %d data_pclk_edge %d de_level %d sync_pclk_edge %d\n"

	.comm	_DISPLAY_FLAGS_VSYNC_HIGH,4,2   ## @DISPLAY_FLAGS_VSYNC_HIGH
	.comm	_DISPLAY_FLAGS_VSYNC_LOW,4,2    ## @DISPLAY_FLAGS_VSYNC_LOW
	.comm	_DISPLAY_FLAGS_HSYNC_HIGH,4,2   ## @DISPLAY_FLAGS_HSYNC_HIGH
	.comm	_DISPLAY_FLAGS_HSYNC_LOW,4,2    ## @DISPLAY_FLAGS_HSYNC_LOW
	.comm	_DISPLAY_FLAGS_PIXDATA_POSEDGE,4,2 ## @DISPLAY_FLAGS_PIXDATA_POSEDGE
	.comm	_DISPLAY_FLAGS_PIXDATA_NEGEDGE,4,2 ## @DISPLAY_FLAGS_PIXDATA_NEGEDGE
	.comm	_DISPLAY_FLAGS_DE_HIGH,4,2      ## @DISPLAY_FLAGS_DE_HIGH
	.comm	_DISPLAY_FLAGS_DE_LOW,4,2       ## @DISPLAY_FLAGS_DE_LOW
	.comm	_DISPLAY_FLAGS_SYNC_POSEDGE,4,2 ## @DISPLAY_FLAGS_SYNC_POSEDGE
	.comm	_DISPLAY_FLAGS_SYNC_NEGEDGE,4,2 ## @DISPLAY_FLAGS_SYNC_NEGEDGE
L_.str.4:                               ## @.str.4
	.asciz	"hsync %luHz, vsync %luHz\n"

	.comm	_DISPLAY_FLAGS_INTERLACED,4,2   ## @DISPLAY_FLAGS_INTERLACED
	.comm	_DISPC_CONTROL,4,2              ## @DISPC_CONTROL
	.comm	_DISPLAY_FLAGS_DOUBLECLK,4,2    ## @DISPLAY_FLAGS_DOUBLECLK
	.no_dead_strip	_dispc_mgr_set_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_mgr_set_timings
_dispc_mgr_set_timings:                 ; @dispc_mgr_set_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	q0, q1, [x2]
	stp	q0, q1, [sp, #48]
	ldr	x8, [x2, #32]
	str	x8, [sp, #80]
	mov	w1, w1
	ldp	w8, w9, [sp, #48]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	bl	_dispc_mgr_check_timings
	cbz	x0, LBB0_2
; %bb.1:
	bl	_BUG
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_dss_mgr_is_lcd
	cbz	x0, LBB0_4
; %bb.3:
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	bl	__dispc_mgr_set_lcd_timings
	ldp	w8, w9, [sp, #56]
	ldp	w10, w11, [sp, #48]
	add	w8, w8, w10
	add	w8, w8, w9
	ldp	w9, w10, [sp, #64]
	add	w8, w8, w9
	ldp	w9, w12, [sp, #72]
	add	w10, w10, w11
	add	w9, w10, w9
	add	w9, w9, w12
	ldr	w1, [x21, #32]
	udiv	w21, w1, w8
	udiv	w26, w21, w9
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSDBG
	ldp	w8, w1, [sp, #56]
	ldp	w9, w10, [sp, #64]
	ldp	w11, w12, [sp, #72]
	stp	x10, x12, [sp, #24]
	stp	x9, x11, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DSSDBG
	ldr	w0, [sp, #84]
Lloh6:
	adrp	x8, _DISPLAY_FLAGS_VSYNC_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISPLAY_FLAGS_VSYNC_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DISPLAY_FLAGS_VSYNC_LOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DISPLAY_FLAGS_VSYNC_LOW@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_vm_flag_to_int
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	ldr	w0, [sp, #84]
Lloh12:
	adrp	x8, _DISPLAY_FLAGS_HSYNC_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISPLAY_FLAGS_HSYNC_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DISPLAY_FLAGS_HSYNC_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DISPLAY_FLAGS_HSYNC_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_vm_flag_to_int
	mov	x23, x0
	ldr	w0, [sp, #84]
Lloh18:
	adrp	x8, _DISPLAY_FLAGS_PIXDATA_POSEDGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DISPLAY_FLAGS_PIXDATA_POSEDGE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _DISPLAY_FLAGS_PIXDATA_NEGEDGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DISPLAY_FLAGS_PIXDATA_NEGEDGE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_vm_flag_to_int
	mov	x24, x0
	ldr	w0, [sp, #84]
Lloh24:
	adrp	x8, _DISPLAY_FLAGS_DE_HIGH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DISPLAY_FLAGS_DE_HIGH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _DISPLAY_FLAGS_DE_LOW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DISPLAY_FLAGS_DE_LOW@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_vm_flag_to_int
	mov	x25, x0
	ldr	w0, [sp, #84]
Lloh30:
	adrp	x8, _DISPLAY_FLAGS_SYNC_POSEDGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DISPLAY_FLAGS_SYNC_POSEDGE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _DISPLAY_FLAGS_SYNC_NEGEDGE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DISPLAY_FLAGS_SYNC_NEGEDGE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	bl	_vm_flag_to_int
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #16]
	stp	x23, x24, [sp]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_DSSDBG
	str	x26, [sp]
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_DSSDBG
	b	LBB0_8
LBB0_4:
	ldr	w8, [sp, #84]
Lloh40:
	adrp	x9, _DISPLAY_FLAGS_INTERLACED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DISPLAY_FLAGS_INTERLACED@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [sp, #52]
	lsr	w9, w9, #1
	str	w9, [sp, #52]
LBB0_6:
	ldr	x9, [x20]
	ldr	x9, [x9]
	cbz	x9, LBB0_8
; %bb.7:
Lloh43:
	adrp	x9, _DISPC_CONTROL@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DISPC_CONTROL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x9]
Lloh46:
	adrp	x9, _DISPLAY_FLAGS_DOUBLECLK@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DISPLAY_FLAGS_DOUBLECLK@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	mov	x0, x20
	mov	w3, #19
	mov	w4, #17
	bl	_REG_FLD_MOD
LBB0_8:
	ldp	w2, w3, [sp, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_dispc_mgr_set_size
LBB0_9:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d xres %u yres %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"pck %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"vsync_level %d hsync_level %d data_pclk_edge %d de_level %d sync_pclk_edge %d\n"

	.comm	_DISPLAY_FLAGS_VSYNC_HIGH,4,2   ; @DISPLAY_FLAGS_VSYNC_HIGH
	.comm	_DISPLAY_FLAGS_VSYNC_LOW,4,2    ; @DISPLAY_FLAGS_VSYNC_LOW
	.comm	_DISPLAY_FLAGS_HSYNC_HIGH,4,2   ; @DISPLAY_FLAGS_HSYNC_HIGH
	.comm	_DISPLAY_FLAGS_HSYNC_LOW,4,2    ; @DISPLAY_FLAGS_HSYNC_LOW
	.comm	_DISPLAY_FLAGS_PIXDATA_POSEDGE,4,2 ; @DISPLAY_FLAGS_PIXDATA_POSEDGE
	.comm	_DISPLAY_FLAGS_PIXDATA_NEGEDGE,4,2 ; @DISPLAY_FLAGS_PIXDATA_NEGEDGE
	.comm	_DISPLAY_FLAGS_DE_HIGH,4,2      ; @DISPLAY_FLAGS_DE_HIGH
	.comm	_DISPLAY_FLAGS_DE_LOW,4,2       ; @DISPLAY_FLAGS_DE_LOW
	.comm	_DISPLAY_FLAGS_SYNC_POSEDGE,4,2 ; @DISPLAY_FLAGS_SYNC_POSEDGE
	.comm	_DISPLAY_FLAGS_SYNC_NEGEDGE,4,2 ; @DISPLAY_FLAGS_SYNC_NEGEDGE
l_.str.4:                               ; @.str.4
	.asciz	"hsync %luHz, vsync %luHz\n"

	.comm	_DISPLAY_FLAGS_INTERLACED,4,2   ; @DISPLAY_FLAGS_INTERLACED
	.comm	_DISPC_CONTROL,4,2              ; @DISPC_CONTROL
	.comm	_DISPLAY_FLAGS_DOUBLECLK,4,2    ; @DISPLAY_FLAGS_DOUBLECLK
	.no_dead_strip	_dispc_mgr_set_timings
.subsections_via_symbols
