	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_src_reset_ipu                  ## -- Begin function src_reset_ipu
	.p2align	4, 0x90
_src_reset_ipu:                         ## @src_reset_ipu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_src_sc@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_SRC_SCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_RD4
	movq	_SW_IPU1_RST@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	(%r15), %rdi
	movl	(%r14), %esi
	movl	%eax, %edx
	callq	_WR4
	movq	(%r15), %rdi
	movl	(%r14), %esi
	callq	_RD4
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:
	movl	$10000, %ebx                    ## imm = 0x2710
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_DELAY
	cmpl	$1, %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdi
	movl	(%r14), %esi
	callq	_RD4
	decl	%ebx
	testl	%eax, (%r12)
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_3:
	movl	$10000, %ebx                    ## imm = 0x2710
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setle	%al
	negl	%eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_src_sc,8,3                     ## @src_sc
	.comm	_SRC_SCR,4,2                    ## @SRC_SCR
	.comm	_SW_IPU1_RST,4,2                ## @SW_IPU1_RST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_src_reset_ipu                  ; -- Begin function src_reset_ipu
	.p2align	2
_src_reset_ipu:                         ; @src_reset_ipu
	.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
Lloh0:
	adrp	x19, _src_sc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _src_sc@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x20, _SRC_SCR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SRC_SCR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_RD4
Lloh4:
	adrp	x21, _SW_IPU1_RST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SW_IPU1_RST@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w2, w8, w0
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_WR4
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_RD4
	ldr	w8, [x21]
	mov	w22, #10000
	tst	w8, w0
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_DELAY
	subs	w22, w22, #1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_RD4
	ldr	w8, [x21]
	and	w8, w8, w0
	cbnz	w8, LBB0_2
LBB0_4:
	cmp	w22, #1
	csetm	w0, lt
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_src_sc,8,3                     ; @src_sc
	.comm	_SRC_SCR,4,2                    ; @SRC_SCR
	.comm	_SW_IPU1_RST,4,2                ; @SW_IPU1_RST
.subsections_via_symbols
