	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_addimm64                  ## -- Begin function emit_addimm64
	.p2align	4, 0x90
_emit_addimm64:                         ## @emit_addimm64
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	cmpl	%edx, %edi
	jne	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.2:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_assem_debug
	movsbl	%r14b, %ebx
	movl	%r15d, %ecx
	sarl	$3, %ecx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_output_rex
	cmpl	%r14d, %ebx
	jne	LBB0_4
## %bb.3:
	movl	$131, %edi
	callq	_output_byte
	andl	$7, %r15d
	movl	$3, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_5:
	movl	%edx, %ebx
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.6:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %edx
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%ebx, %esi
	sarl	$3, %esi
	movl	%r15d, %ecx
	sarl	$3, %ecx
	movl	$1, %edi
	xorl	%edx, %edx
	callq	_output_rex
	movl	$141, %edi
	callq	_output_byte
	movsbl	%r14b, %eax
	andl	$7, %r15d
	andl	$7, %ebx
	cmpl	%r14d, %eax
	jne	LBB0_9
## %bb.7:
	movl	$1, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
LBB0_8:
	callq	_output_modrm
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_output_byte                    ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r15d, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_mov                       ## TAILCALL
LBB0_4:
	movl	$129, %edi
	callq	_output_byte
	andl	$7, %r15d
	movl	$3, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_9:
	movl	$2, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
LBB0_10:
	callq	_output_modrm
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_output_w32                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add $%d,%%%s\n"

	.comm	_regname,8,3                    ## @regname
L_.str.1:                               ## @.str.1
	.asciz	"lea %d(%%%s),%%%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_addimm64                  ; -- Begin function emit_addimm64
	.p2align	2
_emit_addimm64:                         ; @emit_addimm64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	cmp	w0, w2
	b.ne	LBB0_4
; %bb.1:
	cbz	w19, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _regname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w2, [x8, w20, sxtw #2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_assem_debug
	asr	w3, w20, #3
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	bl	_output_rex
	cmp	w19, w19, sxtb
	b.ne	LBB0_10
; %bb.3:
	mov	w0, #131
	bl	_output_byte
	and	w1, w20, #0x7
	mov	w0, #3
	mov	w2, #0
	b	LBB0_7
LBB0_4:
	mov	x21, x2
	cbz	w19, LBB0_9
; %bb.5:
Lloh5:
	adrp	x8, _regname@GOTPAGE
Lloh6:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w2, [x8, w20, sxtw #2]
	ldr	w8, [x8, w21, sxtw #2]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_assem_debug
	asr	w1, w21, #3
	asr	w3, w20, #3
	mov	w0, #1
	mov	w2, #0
	bl	_output_rex
	mov	w0, #141
	bl	_output_byte
	and	w1, w20, #0x7
	and	w2, w21, #0x7
	cmp	w19, w19, sxtb
	b.ne	LBB0_11
; %bb.6:
	mov	w0, #1
LBB0_7:
	bl	_output_modrm
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_output_byte
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_emit_mov
LBB0_10:
	mov	w0, #129
	bl	_output_byte
	and	w1, w20, #0x7
	mov	w0, #3
	mov	w2, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #2
LBB0_12:
	bl	_output_modrm
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_output_w32
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add $%d,%%%s\n"

	.comm	_regname,8,3                    ; @regname
l_.str.1:                               ; @.str.1
	.asciz	"lea %d(%%%s),%%%s\n"

.subsections_via_symbols
