	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_mgr_set_lcd_divisor
_dispc_mgr_set_lcd_divisor:             ## @dispc_mgr_set_lcd_divisor
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	xorl	%edi, %edi
	testl	%edx, %edx
	setle	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setle	%dil
	callq	_BUG_ON
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r15d, %ebx
	callq	_DISPC_DIVISORo
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	$23, %esi
	movl	$16, %edx
	callq	_FLD_VAL
	movl	%eax, %r15d
	movl	%r14d, %edi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_FLD_VAL
	orl	%eax, %r15d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_dispc_write_reg
	movq	_FEAT_CORE_CLK_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dispc_has_feature
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_OMAP_DSS_CHANNEL_LCD@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_dispc_fclk_rate
	cltd
	idivl	%ebx
	movl	%eax, (%r12)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEAT_CORE_CLK_DIV,4,2          ## @FEAT_CORE_CLK_DIV
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ## @OMAP_DSS_CHANNEL_LCD
	.no_dead_strip	_dispc_mgr_set_lcd_divisor
.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_lcd_divisor
_dispc_mgr_set_lcd_divisor:             ; @dispc_mgr_set_lcd_divisor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w2, #1
	cset	w0, lt
	bl	_BUG_ON
	cmp	w21, #1
	cset	w0, lt
	bl	_BUG_ON
	mov	x0, x22
	bl	_DISPC_DIVISORo
	mov	x23, x0
	mov	x0, x19
	mov	w1, #23
	mov	w2, #16
	bl	_FLD_VAL
	mov	x24, x0
	mov	x0, x21
	mov	w1, #7
	mov	w2, #0
	bl	_FLD_VAL
	orr	w2, w0, w24
	mov	x0, x20
	mov	x1, x23
	bl	_dispc_write_reg
Lloh0:
	adrp	x8, _FEAT_CORE_CLK_DIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEAT_CORE_CLK_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dispc_has_feature
Lloh3:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, w22, #0, eq
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_dispc_fclk_rate
	sdiv	w8, w0, w19
	str	w8, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FEAT_CORE_CLK_DIV,4,2          ; @FEAT_CORE_CLK_DIV
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ; @OMAP_DSS_CHANNEL_LCD
	.no_dead_strip	_dispc_mgr_set_lcd_divisor
.subsections_via_symbols
