	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_module_enable              ## -- Begin function ipu_module_enable
	.p2align	4, 0x90
_ipu_module_enable:                     ## @ipu_module_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_IPU_DISP_GEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ipu_cm_read
	movq	_IPU_CONF_DI0_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r14d, %esi
	je	LBB0_2
## %bb.1:
	movq	_IPU_DI0_COUNTER_RELEASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_2:
	orl	%eax, %esi
	movq	_IPU_CONF_DI1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movq	_IPU_DI1_COUNTER_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ipu_cm_write
	movq	_IPU_CONF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ipu_cm_read
	orl	%eax, %r14d
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ipu_cm_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPU_DISP_GEN,4,2               ## @IPU_DISP_GEN
	.comm	_IPU_CONF_DI0_EN,4,2            ## @IPU_CONF_DI0_EN
	.comm	_IPU_DI0_COUNTER_RELEASE,4,2    ## @IPU_DI0_COUNTER_RELEASE
	.comm	_IPU_CONF_DI1_EN,4,2            ## @IPU_CONF_DI1_EN
	.comm	_IPU_DI1_COUNTER_RELEASE,4,2    ## @IPU_DI1_COUNTER_RELEASE
	.comm	_IPU_CONF,4,2                   ## @IPU_CONF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_module_enable              ; -- Begin function ipu_module_enable
	.p2align	2
_ipu_module_enable:                     ; @ipu_module_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, x1
	mov	x20, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _IPU_DISP_GEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IPU_DISP_GEN@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ipu_cm_read
Lloh2:
	adrp	x8, _IPU_CONF_DI0_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPU_CONF_DI0_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IPU_DI0_COUNTER_RELEASE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPU_DI0_COUNTER_RELEASE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _IPU_CONF_DI1_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPU_CONF_DI1_EN@GOTPAGEOFF]
Lloh10:
	adrp	x10, _IPU_DI1_COUNTER_RELEASE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IPU_DI1_COUNTER_RELEASE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x20
	bl	_ipu_cm_write
Lloh14:
	adrp	x21, _IPU_CONF@GOTPAGE
Lloh15:
	ldr	x21, [x21, _IPU_CONF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ipu_cm_read
	orr	w1, w0, w19
	ldr	w2, [x21]
	mov	x0, x20
	bl	_ipu_cm_write
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPU_DISP_GEN,4,2               ; @IPU_DISP_GEN
	.comm	_IPU_CONF_DI0_EN,4,2            ; @IPU_CONF_DI0_EN
	.comm	_IPU_DI0_COUNTER_RELEASE,4,2    ; @IPU_DI0_COUNTER_RELEASE
	.comm	_IPU_CONF_DI1_EN,4,2            ; @IPU_CONF_DI1_EN
	.comm	_IPU_DI1_COUNTER_RELEASE,4,2    ; @IPU_DI1_COUNTER_RELEASE
	.comm	_IPU_CONF,4,2                   ; @IPU_CONF
.subsections_via_symbols
