	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_4bri_set_addresses
_diva_4bri_set_addresses:               ## @diva_4bri_set_addresses
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	56(%rdi), %rax
	movslq	(%rdi), %rcx
	imulq	%rax, %rcx
	movq	64(%rdi), %rdx
	movq	_MEM_TYPE_RAM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$2, (%rdx,%rsi,4)
	movq	_MEM_TYPE_ADDRESS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$2, (%rdx,%rsi,4)
	movq	_MEM_TYPE_CONTROL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$2, (%rdx,%rsi,4)
	movq	_MEM_TYPE_RESET@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$0, (%rdx,%rsi,4)
	movq	_MEM_TYPE_CTLREG@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$3, (%rdx,%rsi,4)
	movq	_MEM_TYPE_PROM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	$0, (%rdx,%rsi,4)
	movq	72(%rdi), %rdx
	addl	%ecx, %eax
	shlq	$2, %rcx
	addq	16(%rdx), %rcx
	movq	%rcx, 48(%rdi)
	movq	16(%rdx), %rcx
	movq	%rcx, 40(%rdi)
	movq	_MQ_SHARED_RAM_SIZE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cltq
	shlq	$2, %rax
	addq	16(%rdx), %rax
	movq	%rax, 32(%rdi)
	movq	(%rdx), %rax
	movq	%rax, 8(%rdi)
	movq	24(%rdx), %rcx
	movq	%rcx, 24(%rdi)
	addq	$440, %rax                      ## imm = 0x1B8
	movq	%rax, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_TYPE_RAM,8,3               ## @MEM_TYPE_RAM
	.comm	_MEM_TYPE_ADDRESS,8,3           ## @MEM_TYPE_ADDRESS
	.comm	_MEM_TYPE_CONTROL,8,3           ## @MEM_TYPE_CONTROL
	.comm	_MEM_TYPE_RESET,8,3             ## @MEM_TYPE_RESET
	.comm	_MEM_TYPE_CTLREG,8,3            ## @MEM_TYPE_CTLREG
	.comm	_MEM_TYPE_PROM,8,3              ## @MEM_TYPE_PROM
	.comm	_MQ_SHARED_RAM_SIZE,4,2         ## @MQ_SHARED_RAM_SIZE
	.no_dead_strip	_diva_4bri_set_addresses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_4bri_set_addresses
_diva_4bri_set_addresses:               ; @diva_4bri_set_addresses
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #56]
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _MEM_TYPE_RAM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MEM_TYPE_RAM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mov	w11, #2
	ldp	x12, x13, [x0, #64]
	str	w11, [x12, x10, lsl #2]
Lloh3:
	adrp	x10, _MEM_TYPE_ADDRESS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MEM_TYPE_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	w11, [x12, x10, lsl #2]
Lloh6:
	adrp	x10, _MEM_TYPE_CONTROL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MEM_TYPE_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	w11, [x12, x10, lsl #2]
Lloh9:
	adrp	x10, _MEM_TYPE_RESET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MEM_TYPE_RESET@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	wzr, [x12, x10, lsl #2]
Lloh12:
	adrp	x10, _MEM_TYPE_CTLREG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MEM_TYPE_CTLREG@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	mov	w11, #3
	str	w11, [x12, x10, lsl #2]
	mul	w9, w9, w8
Lloh15:
	adrp	x10, _MEM_TYPE_PROM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MEM_TYPE_PROM@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	str	wzr, [x12, x10, lsl #2]
	ldr	x10, [x13, #16]
	add	x10, x10, w9, sxtw #2
	str	x10, [x0, #48]
	ldr	x10, [x13, #16]
	str	x10, [x0, #40]
Lloh18:
	adrp	x10, _MQ_SHARED_RAM_SIZE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MQ_SHARED_RAM_SIZE@GOTPAGEOFF]
	ldr	x11, [x13, #16]
Lloh20:
	ldr	w10, [x10]
	add	w8, w9, w8
	sub	w8, w8, w10
	add	x8, x11, w8, sxtw #2
	str	x8, [x0, #32]
	ldr	x8, [x13]
	str	x8, [x0, #8]
	ldr	x9, [x13, #24]
	add	x8, x8, #440
	stp	x8, x9, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_TYPE_RAM,8,3               ; @MEM_TYPE_RAM
	.comm	_MEM_TYPE_ADDRESS,8,3           ; @MEM_TYPE_ADDRESS
	.comm	_MEM_TYPE_CONTROL,8,3           ; @MEM_TYPE_CONTROL
	.comm	_MEM_TYPE_RESET,8,3             ; @MEM_TYPE_RESET
	.comm	_MEM_TYPE_CTLREG,8,3            ; @MEM_TYPE_CTLREG
	.comm	_MEM_TYPE_PROM,8,3              ; @MEM_TYPE_PROM
	.comm	_MQ_SHARED_RAM_SIZE,4,2         ; @MQ_SHARED_RAM_SIZE
	.no_dead_strip	_diva_4bri_set_addresses
.subsections_via_symbols
