	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_pre_get                    ## -- Begin function ipu_pre_get
	.p2align	4, 0x90
_ipu_pre_get:                           ## @ipu_pre_get
	.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
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %r14
	movq	_IPU_PRE_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%rdi), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	movq	_IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN@GOTPCREL(%rip), %rax
	movq	_IPU_PRE_CTRL_HANDSHAKE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_IPU_PRE_CTRL_TPR_REST_SEL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_IPU_PRE_CTRL_SDW_UPDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	$1, (%r14)
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IPU_PRE_CTRL,8,3               ## @IPU_PRE_CTRL
	.comm	_IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN,4,2 ## @IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN
	.comm	_IPU_PRE_CTRL_HANDSHAKE_EN,4,2  ## @IPU_PRE_CTRL_HANDSHAKE_EN
	.comm	_IPU_PRE_CTRL_TPR_REST_SEL,4,2  ## @IPU_PRE_CTRL_TPR_REST_SEL
	.comm	_IPU_PRE_CTRL_SDW_UPDATE,4,2    ## @IPU_PRE_CTRL_SDW_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipu_pre_get                    ; -- Begin function ipu_pre_get
	.p2align	2
_ipu_pre_get:                           ; @ipu_pre_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x20, _IPU_PRE_CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IPU_PRE_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh5:
	adrp	x8, _IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IPU_PRE_CTRL_HANDSHAKE_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPU_PRE_CTRL_HANDSHAKE_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _IPU_PRE_CTRL_TPR_REST_SEL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IPU_PRE_CTRL_TPR_REST_SEL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IPU_PRE_CTRL_SDW_UPDATE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IPU_PRE_CTRL_SDW_UPDATE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh16:
	ldr	w9, [x10]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IPU_PRE_CTRL,8,3               ; @IPU_PRE_CTRL
	.comm	_IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN,4,2 ; @IPU_PRE_CTRL_HANDSHAKE_ABORT_SKIP_EN
	.comm	_IPU_PRE_CTRL_HANDSHAKE_EN,4,2  ; @IPU_PRE_CTRL_HANDSHAKE_EN
	.comm	_IPU_PRE_CTRL_TPR_REST_SEL,4,2  ; @IPU_PRE_CTRL_TPR_REST_SEL
	.comm	_IPU_PRE_CTRL_SDW_UPDATE,4,2    ; @IPU_PRE_CTRL_SDW_UPDATE
.subsections_via_symbols
