	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_di_enable
_ipu_di_enable:                         ## @ipu_di_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_DISP_GEN_DI0_CNTR_RELEASE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DISP_GEN_DI1_CNTR_RELEASE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_IPU_DISP_GEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_IPU_READ4
	orl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPU_WRITE4                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DISP_GEN_DI1_CNTR_RELEASE,4,2  ## @DISP_GEN_DI1_CNTR_RELEASE
	.comm	_DISP_GEN_DI0_CNTR_RELEASE,4,2  ## @DISP_GEN_DI0_CNTR_RELEASE
	.comm	_IPU_DISP_GEN,4,2               ## @IPU_DISP_GEN
	.no_dead_strip	_ipu_di_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_di_enable
_ipu_di_enable:                         ; @ipu_di_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DISP_GEN_DI1_CNTR_RELEASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISP_GEN_DI1_CNTR_RELEASE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DISP_GEN_DI0_CNTR_RELEASE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DISP_GEN_DI0_CNTR_RELEASE@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
Lloh4:
	adrp	x21, _IPU_DISP_GEN@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IPU_DISP_GEN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_IPU_READ4
	orr	w2, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IPU_WRITE4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DISP_GEN_DI1_CNTR_RELEASE,4,2  ; @DISP_GEN_DI1_CNTR_RELEASE
	.comm	_DISP_GEN_DI0_CNTR_RELEASE,4,2  ; @DISP_GEN_DI0_CNTR_RELEASE
	.comm	_IPU_DISP_GEN,4,2               ; @IPU_DISP_GEN
	.no_dead_strip	_ipu_di_enable
.subsections_via_symbols
