	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function decon_commit
LCPI0_0:
	.quad	10                              ## 0xa
	.quad	-92                             ## 0xffffffffffffffa4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decon_commit:                          ## @decon_commit
	.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
	movq	%rdi, %r12
	movq	72(%rdi), %r14
	movq	_IFTYPE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.3:
	movdqu	48(%r12), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 32(%r12)
	movl	12(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r12)
	addl	$2, %eax
	movl	%eax, 16(%r12)
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	20(%r12), %ebx
	movq	%r14, %rdi
	callq	_decon_setup_trigger
	movq	_VIDOUT_LCD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.4:
	xorl	%r15d, %r15d
	movq	_VIDOUT_INTERLACE_EN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	movq	%r14, %rdi
	callq	_decon_setup_trigger
	movq	_VIDOUT_LCD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	xorl	%eax, %eax
	movb	$1, %r15b
LBB0_5:
	orl	%eax, %edi
	cmpq	$0, (%r12)
	jne	LBB0_6
## %bb.7:
	movq	_VIDOUT_RGB_IF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_VIDOUT_COMMAND_IF@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %edi
	movq	_DECON_VIDOUTCON0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	24(%r12), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	testb	%r15b, %r15b
	cmovnel	%eax, %edi
	decl	%edi
	callq	_VIDTCON2_LINEVAL
	movl	%eax, %ebx
	movq	64(%r12), %rdi
	decq	%rdi
	callq	_VIDTCON2_HOZVAL
	orl	%eax, %ebx
	movq	_DECON_VIDTCON2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	cmpq	$0, (%r12)
	jne	LBB0_12
## %bb.9:
	movl	28(%r12), %edi
	subl	16(%r12), %edi
	movl	%r15d, %eax
	movl	8(%r12), %r15d
	movl	12(%r12), %r13d
	testb	%al, %al
	jne	LBB0_11
## %bb.10:
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	decl	%eax
	movl	%eax, %edi
LBB0_11:
	decl	%edi
	callq	_VIDTCON00_VBPD_F
	movl	%eax, %ebx
	notl	%r13d
	addl	%r13d, %r15d
	movl	%r15d, %edi
	callq	_VIDTCON00_VFPD_F
	orl	%eax, %ebx
	movq	_DECON_VIDTCON00@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	8(%r12), %edi
	notl	%edi
	addl	16(%r12), %edi
	callq	_VIDTCON01_VSPW_F
	movq	_DECON_VIDTCON01@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	40(%r12), %rdi
	notq	%rdi
	addq	56(%r12), %rdi
	callq	_VIDTCON10_HBPD_F
	movl	%eax, %ebx
	movq	48(%r12), %rdi
	notq	%rdi
	addq	32(%r12), %rdi
	callq	_VIDTCON10_HFPD_F
	orl	%eax, %ebx
	movq	_DECON_VIDTCON10@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	32(%r12), %rdi
	notq	%rdi
	addq	40(%r12), %rdi
	callq	_VIDTCON11_HSPW_F
	movq	_DECON_VIDTCON11@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_12:
	movq	_DECON_VIDCON0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VIDCON0_ENVID@GOTPCREL(%rip), %rax
	movq	_VIDCON0_ENVID_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	callq	_decon_set_bits
	movq	_DECON_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STANDALONE_UPDATE_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decon_set_bits                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFTYPE_HDMI,4,2                ## @IFTYPE_HDMI
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_VIDOUT_LCD_ON,4,2              ## @VIDOUT_LCD_ON
	.comm	_VIDOUT_INTERLACE_EN_F,4,2      ## @VIDOUT_INTERLACE_EN_F
	.comm	_VIDOUT_COMMAND_IF,4,2          ## @VIDOUT_COMMAND_IF
	.comm	_VIDOUT_RGB_IF,4,2              ## @VIDOUT_RGB_IF
	.comm	_DECON_VIDOUTCON0,8,3           ## @DECON_VIDOUTCON0
	.comm	_DECON_VIDTCON2,8,3             ## @DECON_VIDTCON2
	.comm	_DECON_VIDTCON00,8,3            ## @DECON_VIDTCON00
	.comm	_DECON_VIDTCON01,8,3            ## @DECON_VIDTCON01
	.comm	_DECON_VIDTCON10,8,3            ## @DECON_VIDTCON10
	.comm	_DECON_VIDTCON11,8,3            ## @DECON_VIDTCON11
	.comm	_DECON_VIDCON0,4,2              ## @DECON_VIDCON0
	.comm	_VIDCON0_ENVID,4,2              ## @VIDCON0_ENVID
	.comm	_VIDCON0_ENVID_F,4,2            ## @VIDCON0_ENVID_F
	.comm	_DECON_UPDATE,4,2               ## @DECON_UPDATE
	.comm	_STANDALONE_UPDATE_F,4,2        ## @STANDALONE_UPDATE_F
	.no_dead_strip	_decon_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function decon_commit
lCPI0_0:
	.quad	10                              ; 0xa
	.quad	-92                             ; 0xffffffffffffffa4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_decon_commit:                          ; @decon_commit
	.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	x20, x0
	ldr	x19, [x0, #72]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFTYPE_HDMI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFTYPE_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	q0, [x20, #48]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	str	q0, [x20, #32]
	ldr	w8, [x20, #12]
	add	w9, w8, #1
	str	w9, [x20, #8]
	add	w8, w8, #2
	str	w8, [x20, #16]
	ldr	w8, [x20, #20]
Lloh5:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w21, w9, w8
	mov	x0, x19
	bl	_decon_setup_trigger
Lloh8:
	adrp	x8, _VIDOUT_LCD_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIDOUT_LCD_ON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w21, LBB0_4
; %bb.2:
	mov	w22, #0
Lloh11:
	adrp	x9, _VIDOUT_INTERLACE_EN_F@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VIDOUT_INTERLACE_EN_F@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_decon_setup_trigger
Lloh14:
	adrp	x8, _VIDOUT_LCD_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VIDOUT_LCD_ON@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_4:
	mov	w9, #0
	mov	w22, #1
LBB0_5:
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _VIDOUT_RGB_IF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VIDOUT_RGB_IF@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh19:
	adrp	x11, _VIDOUT_COMMAND_IF@GOTPAGE
Lloh20:
	ldr	x11, [x11, _VIDOUT_COMMAND_IF@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x9, x11, eq
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _DECON_VIDOUTCON0@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DECON_VIDOUTCON0@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x20, #24]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	w22, #0
	csel	w8, w8, w9, ne
	sub	w0, w8, #1
	bl	_VIDTCON2_LINEVAL
	mov	x21, x0
	ldr	x8, [x20, #64]
	sub	x0, x8, #1
	bl	_VIDTCON2_HOZVAL
	orr	w0, w0, w21
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _DECON_VIDTCON2@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DECON_VIDTCON2@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x20, #28]
	ldp	w24, w9, [x20, #12]
	sub	w8, w8, w9
	ldr	w23, [x20, #8]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	sub	w9, w9, #1
	tst	w22, #0x1
	csel	w8, w8, w9, ne
	sub	w0, w8, #1
	bl	_VIDTCON00_VBPD_F
	mov	x21, x0
	mvn	w8, w24
	add	w0, w23, w8
	bl	_VIDTCON00_VFPD_F
	orr	w0, w0, w21
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _DECON_VIDTCON00@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DECON_VIDTCON00@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #8]
	mvn	w9, w9
	add	w0, w8, w9
	bl	_VIDTCON01_VSPW_F
	ldr	x8, [x19, #8]
Lloh30:
	adrp	x9, _DECON_VIDTCON01@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DECON_VIDTCON01@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #56]
	ldr	x9, [x20, #40]
	mvn	x9, x9
	add	x0, x8, x9
	bl	_VIDTCON10_HBPD_F
	mov	x21, x0
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #48]
	mvn	x9, x9
	add	x0, x8, x9
	bl	_VIDTCON10_HFPD_F
	orr	w0, w0, w21
	ldr	x8, [x19, #8]
Lloh33:
	adrp	x9, _DECON_VIDTCON10@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DECON_VIDTCON10@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	x9, x8, [x20, #32]
	mvn	x9, x9
	add	x0, x8, x9
	bl	_VIDTCON11_HSPW_F
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, _DECON_VIDTCON11@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DECON_VIDTCON11@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_7:
Lloh39:
	adrp	x8, _DECON_VIDCON0@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DECON_VIDCON0@GOTPAGEOFF]
Lloh41:
	adrp	x9, _VIDCON0_ENVID@GOTPAGE
Lloh42:
	ldr	x9, [x9, _VIDCON0_ENVID@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	ldr	w8, [x9]
Lloh45:
	adrp	x9, _VIDCON0_ENVID_F@GOTPAGE
Lloh46:
	ldr	x9, [x9, _VIDCON0_ENVID_F@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #-1
	bl	_decon_set_bits
Lloh48:
	adrp	x8, _DECON_UPDATE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DECON_UPDATE@GOTPAGEOFF]
Lloh50:
	adrp	x9, _STANDALONE_UPDATE_F@GOTPAGE
Lloh51:
	ldr	x9, [x9, _STANDALONE_UPDATE_F@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #-1
	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
	b	_decon_set_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_IFTYPE_HDMI,4,2                ; @IFTYPE_HDMI
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_VIDOUT_LCD_ON,4,2              ; @VIDOUT_LCD_ON
	.comm	_VIDOUT_INTERLACE_EN_F,4,2      ; @VIDOUT_INTERLACE_EN_F
	.comm	_VIDOUT_COMMAND_IF,4,2          ; @VIDOUT_COMMAND_IF
	.comm	_VIDOUT_RGB_IF,4,2              ; @VIDOUT_RGB_IF
	.comm	_DECON_VIDOUTCON0,8,3           ; @DECON_VIDOUTCON0
	.comm	_DECON_VIDTCON2,8,3             ; @DECON_VIDTCON2
	.comm	_DECON_VIDTCON00,8,3            ; @DECON_VIDTCON00
	.comm	_DECON_VIDTCON01,8,3            ; @DECON_VIDTCON01
	.comm	_DECON_VIDTCON10,8,3            ; @DECON_VIDTCON10
	.comm	_DECON_VIDTCON11,8,3            ; @DECON_VIDTCON11
	.comm	_DECON_VIDCON0,4,2              ; @DECON_VIDCON0
	.comm	_VIDCON0_ENVID,4,2              ; @VIDCON0_ENVID
	.comm	_VIDCON0_ENVID_F,4,2            ; @VIDCON0_ENVID_F
	.comm	_DECON_UPDATE,4,2               ; @DECON_UPDATE
	.comm	_STANDALONE_UPDATE_F,4,2        ; @STANDALONE_UPDATE_F
	.no_dead_strip	_decon_commit
.subsections_via_symbols
