	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __amd7930_update_map
___amd7930_update_map:                  ## @__amd7930_update_map
	.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	%rdi, %rbx
	movq	_gx_coeff@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 48(%rdi)
	movq	(%rax,%rdx,8), %rax
	movq	%rax, 40(%rdi)
	movl	16(%rdi), %r15d
	movq	_ger_coeff@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	addl	$256, %eax                      ## imm = 0x100
	imull	%r15d, %eax
	movl	%eax, %ecx
	sarl	$8, %ecx
	movq	(%r12), %rdx
	cmpl	$65536, %eax                    ## imm = 0x10000
	jl	LBB0_2
## %bb.1:
	addl	$-256, %ecx
	movq	(%rdx,%rcx,8), %rax
	movq	%rax, 32(%rbx)
	movl	$2040, %eax                     ## imm = 0x7F8
	jmp	LBB0_3
LBB0_2:
	movq	(%rdx), %rax
	movq	%rax, 32(%rbx)
	movslq	%ecx, %rax
	shlq	$3, %rax
LBB0_3:
	addq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___amd7930_write_map            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gx_coeff,8,3                   ## @gx_coeff
	.comm	_ger_coeff,8,3                  ## @ger_coeff
	.no_dead_strip	___amd7930_update_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __amd7930_update_map
___amd7930_update_map:                  ; @__amd7930_update_map
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _gx_coeff@GOTPAGE
Lloh1:
	ldr	x20, [x20, _gx_coeff@GOTPAGEOFF]
	ldr	x8, [x20]
	ldp	x9, x10, [x0]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x0, #48]
	ldr	x8, [x8, x10, lsl #3]
	str	x8, [x0, #40]
	ldr	w21, [x0, #16]
Lloh2:
	adrp	x22, _ger_coeff@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ger_coeff@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	w8, w0, #256
	mul	w10, w8, w21
	asr	w8, w10, #8
	ldr	x9, [x22]
	cmp	w10, #16, lsl #12               ; =65536
	b.lt	LBB0_2
; %bb.1:
	sub	w8, w8, #256
	ldr	x8, [x9, w8, uxtw #3]
	str	x8, [x19, #32]
	ldr	x8, [x20]
	add	x8, x8, #2040
	b	LBB0_3
LBB0_2:
	ldr	x9, [x9]
	str	x9, [x19, #32]
	ldr	x9, [x20]
	add	x8, x9, w8, sxtw #3
LBB0_3:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	mov	x0, x19
	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
	b	___amd7930_write_map
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gx_coeff,8,3                   ; @gx_coeff
	.comm	_ger_coeff,8,3                  ; @ger_coeff
	.no_dead_strip	___amd7930_update_map
.subsections_via_symbols
