	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp_mc_calc_address
_axp_mc_calc_address:                   ## @axp_mc_calc_address
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $r8d killed $r8d def $r8
	movl	(%rdi), %eax
	cmpl	$4, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$8, %eax
	jne	LBB0_9
## %bb.2:
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_4
## %bb.3:
	movl	%ecx, %eax
	andl	$-8, %eax
	shll	$16, %eax
	shll	$13, %ecx
	movzwl	%cx, %ecx
	andl	$1023, %r8d                     ## imm = 0x3FF
	andl	$7, %edx
	shll	$16, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	leal	(%rdx,%r8,8), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_7
## %bb.6:
	movl	%ecx, %eax
	shll	$15, %eax
	andl	$2146959360, %eax               ## imm = 0x7FF80000
	shll	$12, %ecx
	movzwl	%cx, %ecx
	andl	$1023, %r8d                     ## imm = 0x3FF
	andl	$7, %edx
	shll	$16, %edx
	orl	%eax, %edx
	jmp	LBB0_8
LBB0_9:
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_11
## %bb.10:
	movl	%ecx, %eax
	shll	$14, %eax
	andl	$1073217536, %eax               ## imm = 0x3FF80000
	shll	$11, %ecx
	movzwl	%cx, %ecx
	andl	$1023, %r8d                     ## imm = 0x3FF
	andl	$7, %edx
	shll	$16, %edx
	orl	%eax, %edx
	jmp	LBB0_12
LBB0_4:
	andl	$-65536, %ecx                   ## imm = 0xFFFF0000
	andl	$1023, %r8d                     ## imm = 0x3FF
	shll	$13, %edx
	movzwl	%dx, %eax
	orl	%ecx, %eax
	leal	(%rax,%r8,8), %eax
	popq	%rbp
	retq
LBB0_7:
	andl	$2147450880, %ecx               ## imm = 0x7FFF8000
	andl	$1023, %r8d                     ## imm = 0x3FF
	andl	$7, %edx
	shll	$12, %edx
LBB0_8:
	orl	%ecx, %edx
	leal	(%rdx,%r8,4), %eax
	popq	%rbp
	retq
LBB0_11:
	andl	$1073725440, %ecx               ## imm = 0x3FFFC000
	andl	$1023, %r8d                     ## imm = 0x3FF
	andl	$7, %edx
	shll	$11, %edx
LBB0_12:
	orl	%ecx, %edx
	leal	(%rdx,%r8,2), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_axp_mc_calc_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp_mc_calc_address
_axp_mc_calc_address:                   ; @axp_mc_calc_address
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x1, lsl #3]
	and	w9, w3, #0xffff0000
	bfi	w9, w2, #13, #3
	bfi	w9, w4, #3, #10
	lsl	w10, w3, #16
	and	w10, w10, #0xfff80000
	bfi	w10, w2, #16, #3
	bfi	w10, w3, #13, #3
	bfi	w10, w4, #3, #10
	b	LBB0_5
LBB0_3:
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x1, lsl #3]
	and	w9, w3, #0x7fff8000
	bfi	w9, w2, #12, #3
	bfi	w9, w4, #2, #10
	lsl	w10, w3, #15
	and	w10, w10, #0x7ff80000
	bfi	w10, w2, #16, #3
	bfi	w10, w3, #12, #4
	bfi	w10, w4, #2, #10
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x1, lsl #3]
	and	w9, w3, #0x3fffc000
	bfi	w9, w2, #11, #3
	bfi	w9, w4, #1, #10
	lsl	w10, w3, #14
	and	w10, w10, #0x3ff80000
	bfi	w10, w2, #16, #3
	bfi	w10, w3, #11, #5
	bfi	w10, w4, #1, #10
LBB0_5:
	cmp	x8, #0
	csel	w0, w9, w10, eq
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_axp_mc_calc_address
.subsections_via_symbols
