	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_movimm                    ## -- Begin function emit_movimm
	.p2align	4, 0x90
_emit_movimm:                           ## @emit_movimm
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	-36(%rbp), %rsi
	callq	_genimm
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	orl	-36(%rbp), %eax
	orl	$-476053504, %eax               ## imm = 0xE3A00000
	jmp	LBB0_2
LBB0_3:
	movl	%ebx, %edi
	notl	%edi
	leaq	-36(%rbp), %rsi
	callq	_genimm
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	orl	-36(%rbp), %eax
	orl	$-471859200, %eax               ## imm = 0xE3E00000
	jmp	LBB0_2
LBB0_5:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jg	LBB0_7
## %bb.6:
	movq	_regname@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%r14d, %r12d
	movl	(%rax,%r12,4), %esi
	movl	%ebx, %edx
	andl	$65280, %edx                    ## imm = 0xFF00
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%ebx, %edx
	sarl	$8, %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$8, %ecx
	callq	_rd_rn_imm_shift
	orl	$-476053504, %eax               ## imm = 0xE3A00000
	movl	%eax, %edi
	callq	_output_w32
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %edx
	movzbl	%bl, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%edx, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_assem_debug
	movl	%r14d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rd_rn_imm_shift
	orl	$-494927872, %eax               ## imm = 0xE2800000
LBB0_2:
	movl	%eax, %edi
	callq	_output_w32
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_emit_loadlp
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mov %s,#%d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"add %s,%s,#%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_movimm                    ; -- Begin function emit_movimm
	.p2align	2
_emit_movimm:                           ; @emit_movimm
	.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
	add	x1, sp, #12
	bl	_genimm
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _regname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, uxtw #2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_assem_debug
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_rd_rn_rm
	ldr	w8, [sp, #12]
	orr	w8, w0, w8
	mov	w9, #-476053504
	orr	w0, w8, w9
	bl	_output_w32
	b	LBB0_7
LBB0_2:
	mvn	w0, w20
	add	x1, sp, #12
	bl	_genimm
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _regname@GOTPAGE
Lloh6:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, uxtw #2]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_assem_debug
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_rd_rn_rm
	ldr	w8, [sp, #12]
	orr	w8, w0, w8
	mov	w9, #-476053504
	orr	w8, w8, w9
	orr	w0, w8, #0x400000
	bl	_output_w32
	b	LBB0_7
LBB0_4:
	cmp	w20, #16, lsl #12               ; =65536
	b.ge	LBB0_6
; %bb.5:
Lloh10:
	adrp	x21, _regname@GOTPAGE
Lloh11:
	ldr	x21, [x21, _regname@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, w19
	lsl	x22, x9, #2
	ldr	w1, [x8, x22]
	and	w2, w20, #0xff00
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assem_debug
	asr	w2, w20, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #8
	bl	_rd_rn_imm_shift
	mov	w8, #-476053504
	orr	w0, w0, w8
	bl	_output_w32
	ldr	x8, [x21]
	ldr	w1, [x8, x22]
	and	w20, w20, #0xff
	str	x20, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x1
	bl	_assem_debug
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_rd_rn_imm_shift
	mov	w8, #-494927872
	orr	w0, w0, w8
	bl	_output_w32
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_emit_loadlp
LBB0_7:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mov %s,#%d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"add %s,%s,#%d\n"

.subsections_via_symbols
