	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_init_microcode_template
_ipu_init_microcode_template:           ## @ipu_init_microcode_template
	.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
	testl	%esi, %esi
	movl	$40, %eax
	movl	$16, %r13d
	cmovel	%eax, %r13d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r15
	leal	1(%rdx), %r14d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_GLUELOGIC_KEEP_ASSERTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$5, %edi
	callq	_TEMPLATE_SYNC
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_TEMPLATE_GLUELOGIC
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_TEMPLATE_WAVEFORM
	orl	%eax, %ebx
	movl	%r14d, %edi
	callq	_TEMPLATE_MAPPING
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_OPCODE_WROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TEMPLATE_OPCODE
	movl	%eax, %r12d
	movq	_TEMPLATE_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_DC_TEMPL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	(%r14,%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_IPU_WRITE4
	leal	(%r14,%r13), %esi
	addl	$4, %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_IPU_WRITE4
	movq	_GLUELOGIC_KEEP_NEGATED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$5, %edi
	callq	_TEMPLATE_SYNC
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_TEMPLATE_GLUELOGIC
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_TEMPLATE_WAVEFORM
	orl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_TEMPLATE_MAPPING
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_OPCODE_WROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TEMPLATE_OPCODE
	movl	%eax, %r12d
	movq	_TEMPLATE_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_DC_TEMPL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	(%r14,%r13), %esi
	addl	$8, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_IPU_WRITE4
	leal	(%r14,%r13), %esi
	addl	$12, %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_IPU_WRITE4
	movl	$5, %edi
	callq	_TEMPLATE_SYNC
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_TEMPLATE_GLUELOGIC
	orl	%eax, %r12d
	movl	$1, %edi
	callq	_TEMPLATE_WAVEFORM
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_TEMPLATE_MAPPING
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_OPCODE_WROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TEMPLATE_OPCODE
	movl	%eax, %r14d
	movq	_TEMPLATE_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_DC_TEMPL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	(%r12,%r13), %esi
	addl	$16, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_IPU_WRITE4
	leal	(%r12,%r13), %esi
	addl	$20, %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IPU_WRITE4                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GLUELOGIC_KEEP_ASSERTED,4,2    ## @GLUELOGIC_KEEP_ASSERTED
	.comm	_GLUELOGIC_KEEP_NEGATED,4,2     ## @GLUELOGIC_KEEP_NEGATED
	.comm	_OPCODE_WROD,4,2                ## @OPCODE_WROD
	.comm	_TEMPLATE_STOP,4,2              ## @TEMPLATE_STOP
	.comm	_DC_TEMPL_BASE,4,2              ## @DC_TEMPL_BASE
	.no_dead_strip	_ipu_init_microcode_template
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_init_microcode_template
_ipu_init_microcode_template:           ; @ipu_init_microcode_template
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w8, #16
	mov	w9, #40
	cmp	w1, #0
	csel	w24, w9, w8, eq
	add	w20, w2, #1
Lloh0:
	adrp	x8, _GLUELOGIC_KEEP_ASSERTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLUELOGIC_KEEP_ASSERTED@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #5
	bl	_TEMPLATE_SYNC
	mov	x22, x0
	mov	x0, x21
	bl	_TEMPLATE_GLUELOGIC
	orr	w21, w0, w22
	mov	w0, #1
	bl	_TEMPLATE_WAVEFORM
	orr	w21, w21, w0
	mov	x0, x20
	bl	_TEMPLATE_MAPPING
	orr	w21, w21, w0
Lloh3:
	adrp	x25, _OPCODE_WROD@GOTPAGE
Lloh4:
	ldr	x25, [x25, _OPCODE_WROD@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_TEMPLATE_OPCODE
Lloh5:
	adrp	x26, _TEMPLATE_STOP@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TEMPLATE_STOP@GOTPAGEOFF]
	ldr	w8, [x26]
	orr	w22, w8, w0
Lloh7:
	adrp	x27, _DC_TEMPL_BASE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DC_TEMPL_BASE@GOTPAGEOFF]
	ldr	w8, [x27]
	add	w23, w8, w24
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_IPU_WRITE4
	add	w1, w23, #4
	mov	x0, x19
	mov	x2, x22
	bl	_IPU_WRITE4
Lloh9:
	adrp	x8, _GLUELOGIC_KEEP_NEGATED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GLUELOGIC_KEEP_NEGATED@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	w0, #5
	bl	_TEMPLATE_SYNC
	mov	x22, x0
	mov	x0, x21
	bl	_TEMPLATE_GLUELOGIC
	orr	w21, w0, w22
	mov	w0, #1
	bl	_TEMPLATE_WAVEFORM
	orr	w21, w21, w0
	mov	x0, x20
	bl	_TEMPLATE_MAPPING
	orr	w21, w21, w0
	ldr	w0, [x25]
	bl	_TEMPLATE_OPCODE
	ldr	w8, [x26]
	orr	w22, w8, w0
	ldr	w8, [x27]
	add	w23, w24, w8
	add	w1, w23, #8
	mov	x0, x19
	mov	x2, x21
	bl	_IPU_WRITE4
	add	w1, w23, #12
	mov	x0, x19
	mov	x2, x22
	bl	_IPU_WRITE4
	mov	w0, #5
	bl	_TEMPLATE_SYNC
	mov	x21, x0
	mov	w0, #0
	bl	_TEMPLATE_GLUELOGIC
	orr	w21, w0, w21
	mov	w0, #1
	bl	_TEMPLATE_WAVEFORM
	orr	w21, w21, w0
	mov	x0, x20
	bl	_TEMPLATE_MAPPING
	orr	w20, w21, w0
	ldr	w0, [x25]
	bl	_TEMPLATE_OPCODE
	ldr	w8, [x26]
	orr	w21, w8, w0
	ldr	w8, [x27]
	add	w22, w24, w8
	add	w1, w22, #16
	mov	x0, x19
	mov	x2, x20
	bl	_IPU_WRITE4
	add	w1, w22, #20
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_IPU_WRITE4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLUELOGIC_KEEP_ASSERTED,4,2    ; @GLUELOGIC_KEEP_ASSERTED
	.comm	_GLUELOGIC_KEEP_NEGATED,4,2     ; @GLUELOGIC_KEEP_NEGATED
	.comm	_OPCODE_WROD,4,2                ; @OPCODE_WROD
	.comm	_TEMPLATE_STOP,4,2              ; @TEMPLATE_STOP
	.comm	_DC_TEMPL_BASE,4,2              ; @DC_TEMPL_BASE
	.no_dead_strip	_ipu_init_microcode_template
.subsections_via_symbols
