	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_prg_channel_disable        ## -- Begin function ipu_prg_channel_disable
	.p2align	4, 0x90
_ipu_prg_channel_disable:               ## @ipu_prg_channel_disable
	.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, %rbx
	movl	8(%rdi), %edi
	callq	_ipu_prg_ipu_to_prg_chan
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	16(%rbx), %r12
	movl	%r14d, %r13d
	cmpl	$0, (%r12,%r13,4)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_pm_runtime_get_sync
	movq	_IPU_PRG_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_IPU_PRG_CTL_BYPASS
	orl	%eax, %r15d
	movq	_IPU_PRG_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_IPU_PRG_REG_UPDATE_REG_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IPU_PRG_REG_UPDATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%rbx), %edi
	callq	_pm_runtime_put
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ipu_prg_put_pre
	movl	$0, (%r12,%r13,4)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPU_PRG_CTL,8,3                ## @IPU_PRG_CTL
	.comm	_IPU_PRG_REG_UPDATE_REG_UPDATE,4,2 ## @IPU_PRG_REG_UPDATE_REG_UPDATE
	.comm	_IPU_PRG_REG_UPDATE,8,3         ## @IPU_PRG_REG_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_prg_channel_disable        ; -- Begin function ipu_prg_channel_disable
	.p2align	2
_ipu_prg_channel_disable:               ; @ipu_prg_channel_disable
	.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	w0, [x0, #8]
	bl	_ipu_prg_ipu_to_prg_chan
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldr	x22, [x20, #16]
	ldr	w8, [x22, w0, uxtw #2]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w23, w19
	ldr	w0, [x20]
	bl	_pm_runtime_get_sync
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x24, _IPU_PRG_CTL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPU_PRG_CTL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	mov	x0, x19
	bl	_IPU_PRG_CTL_BYPASS
	orr	w0, w0, w21
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
Lloh2:
	adrp	x8, _IPU_PRG_REG_UPDATE_REG_UPDATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPU_PRG_REG_UPDATE_REG_UPDATE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _IPU_PRG_REG_UPDATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPU_PRG_REG_UPDATE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20]
	bl	_pm_runtime_put
	mov	x0, x20
	mov	x1, x19
	bl	_ipu_prg_put_pre
	str	wzr, [x22, x23, lsl #2]
LBB0_3:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPU_PRG_CTL,8,3                ; @IPU_PRG_CTL
	.comm	_IPU_PRG_REG_UPDATE_REG_UPDATE,4,2 ; @IPU_PRG_REG_UPDATE_REG_UPDATE
	.comm	_IPU_PRG_REG_UPDATE,8,3         ; @IPU_PRG_REG_UPDATE
.subsections_via_symbols
