	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_add_end_of_cb_packets     ## -- Begin function goya_add_end_of_cb_packets
	.p2align	4, 0x90
_goya_add_end_of_cb_packets:            ## @goya_add_end_of_cb_packets
	.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
	movl	%r9d, %r12d
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	_PACKET_MSG_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GOYA_PKT_CTL_OPCODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movslq	%edx, %r13
	movslq	%esi, %rbx
	movq	_GOYA_PKT_CTL_EB_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	movq	_GOYA_PKT_CTL_MB_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -32(%r13,%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	%rax, -40(%r13,%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le64
	movq	%rax, -48(%r13,%rbx)
	movq	_PACKET_MSG_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GOYA_PKT_CTL_OPCODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_GOYA_PKT_CTL_MB_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -8(%r13,%rbx)
	andl	$2047, %r12d                    ## imm = 0x7FF
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, -16(%r13,%rbx)
	movq	_CFG_BASE@GOTPCREL(%rip), %rax
	movq	_mmPCIE_DBI_MSIX_DOORBELL_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -24(%r13,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_MSG_PROT,4,2            ## @PACKET_MSG_PROT
	.comm	_GOYA_PKT_CTL_OPCODE_SHIFT,4,2  ## @GOYA_PKT_CTL_OPCODE_SHIFT
	.comm	_GOYA_PKT_CTL_EB_SHIFT,4,2      ## @GOYA_PKT_CTL_EB_SHIFT
	.comm	_GOYA_PKT_CTL_MB_SHIFT,4,2      ## @GOYA_PKT_CTL_MB_SHIFT
	.comm	_CFG_BASE,4,2                   ## @CFG_BASE
	.comm	_mmPCIE_DBI_MSIX_DOORBELL_OFF,4,2 ## @mmPCIE_DBI_MSIX_DOORBELL_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_add_end_of_cb_packets     ; -- Begin function goya_add_end_of_cb_packets
	.p2align	2
_goya_add_end_of_cb_packets:            ; @goya_add_end_of_cb_packets
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	add	w8, w2, w1
	sxtw	x22, w8
Lloh0:
	adrp	x23, _PACKET_MSG_PROT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PACKET_MSG_PROT@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _GOYA_PKT_CTL_OPCODE_SHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GOYA_PKT_CTL_OPCODE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x24]
	lsl	w8, w8, w9
Lloh4:
	adrp	x9, _GOYA_PKT_CTL_EB_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GOYA_PKT_CTL_EB_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	mov	w25, #1
	lsl	w9, w25, w9
	orr	w8, w9, w8
Lloh7:
	adrp	x26, _GOYA_PKT_CTL_MB_SHIFT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GOYA_PKT_CTL_MB_SHIFT@GOTPAGEOFF]
	ldr	w9, [x26]
	lsl	w9, w25, w9
	orr	w0, w8, w9
	bl	_cpu_to_le32
	stur	x0, [x22, #-32]
	mov	x0, x20
	bl	_cpu_to_le32
	stur	x0, [x22, #-40]
	mov	x0, x21
	bl	_cpu_to_le64
	stur	x0, [x22, #-48]
	ldr	w8, [x23]
	ldr	w9, [x24]
	lsl	w8, w8, w9
	ldr	w9, [x26]
	lsl	w9, w25, w9
	orr	w0, w9, w8
	bl	_cpu_to_le32
	stur	x0, [x22, #-8]
	and	w0, w19, #0x7ff
	bl	_cpu_to_le32
Lloh9:
	adrp	x8, _CFG_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFG_BASE@GOTPAGEOFF]
	stur	x0, [x22, #-16]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _mmPCIE_DBI_MSIX_DOORBELL_OFF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mmPCIE_DBI_MSIX_DOORBELL_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_cpu_to_le64
	stur	x0, [x22, #-24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_MSG_PROT,4,2            ; @PACKET_MSG_PROT
	.comm	_GOYA_PKT_CTL_OPCODE_SHIFT,4,2  ; @GOYA_PKT_CTL_OPCODE_SHIFT
	.comm	_GOYA_PKT_CTL_EB_SHIFT,4,2      ; @GOYA_PKT_CTL_EB_SHIFT
	.comm	_GOYA_PKT_CTL_MB_SHIFT,4,2      ; @GOYA_PKT_CTL_MB_SHIFT
	.comm	_CFG_BASE,4,2                   ; @CFG_BASE
	.comm	_mmPCIE_DBI_MSIX_DOORBELL_OFF,4,2 ; @mmPCIE_DBI_MSIX_DOORBELL_OFF
.subsections_via_symbols
