	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_cmpimm                    ## -- Begin function emit_cmpimm
	.p2align	4, 0x90
_emit_cmpimm:                           ## @emit_cmpimm
	.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, %r12d
	movl	%edi, %r14d
	leaq	-36(%rbp), %rsi
	movl	%r12d, %edi
	callq	_genimm
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rbx
	movl	(%rax,%rbx,4), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_assem_debug
	xorl	%edi, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	movl	%eax, %edi
	orl	-36(%rbp), %edi
	orl	$-481296384, %edi               ## imm = 0xE3500000
	jmp	LBB0_7
LBB0_2:
	movl	%r12d, %r15d
	negl	%r15d
	leaq	-36(%rbp), %rsi
	movl	%r15d, %edi
	callq	_genimm
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_assem_debug
	xorl	%edi, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_rd_rn_rm
	movl	%eax, %edi
	orl	-36(%rbp), %edi
	orl	$-479199232, %edi               ## imm = 0xE3700000
	jmp	LBB0_7
LBB0_4:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.5:
	cmpl	$65536, %r12d                   ## imm = 0x10000
	setb	%dil
	callq	_assert
	movq	_HOST_TEMPREG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_emit_movimm
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	(%rbx), %edx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_rd_rn_rm
	movl	%eax, %edi
	orl	$-514850816, %edi               ## imm = 0xE1500000
	jmp	LBB0_7
LBB0_6:
	cmpl	$-65535, %r12d                  ## imm = 0xFFFF0001
	setge	%dil
	callq	_assert
	movq	_HOST_TEMPREG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_emit_movimm
	movq	_regname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_assem_debug
	movl	(%rbx), %edx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_rd_rn_rm
	movl	%eax, %edi
	orl	$-512753664, %edi               ## imm = 0xE1700000
LBB0_7:
	callq	_output_w32
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmp %s,#%d\n"

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

	.comm	_HOST_TEMPREG,4,2               ## @HOST_TEMPREG
L_.str.2:                               ## @.str.2
	.asciz	"cmp %s,r14\n"

L_.str.3:                               ## @.str.3
	.asciz	"cmn %s,r14\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_cmpimm                    ; -- Begin function emit_cmpimm
	.p2align	2
_emit_cmpimm:                           ; @emit_cmpimm
	.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	x20, x1
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	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, sxtw #2]
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assem_debug
	mov	w0, #0
	mov	x1, x19
	mov	w2, #0
	bl	_rd_rn_rm
	ldr	w8, [sp, #12]
	orr	w8, w0, w8
	mov	w9, #-481296384
	orr	w0, w8, w9
	b	LBB0_7
LBB0_2:
	neg	w21, w20
	add	x1, sp, #12
	mov	x0, x21
	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, sxtw #2]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_assem_debug
	mov	w0, #0
	mov	x1, x19
	mov	w2, #0
	bl	_rd_rn_rm
	ldr	w8, [sp, #12]
	orr	w8, w0, w8
	mov	w9, #-481296384
	orr	w8, w8, w9
	orr	w0, w8, #0x200000
	b	LBB0_7
LBB0_4:
	mov	w22, #-514850816
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.5:
	cmp	w20, #16, lsl #12               ; =65536
	cset	w0, lo
	bl	_assert
Lloh10:
	adrp	x21, _HOST_TEMPREG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _HOST_TEMPREG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_emit_movimm
Lloh12:
	adrp	x8, _regname@GOTPAGE
Lloh13:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_assem_debug
	ldr	w2, [x21]
	mov	w0, #0
	mov	x1, x19
	bl	_rd_rn_rm
	orr	w0, w0, w22
	b	LBB0_7
LBB0_6:
	cmn	w20, #16, lsl #12               ; =65536
	cset	w0, gt
	bl	_assert
Lloh17:
	adrp	x20, _HOST_TEMPREG@GOTPAGE
Lloh18:
	ldr	x20, [x20, _HOST_TEMPREG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_emit_movimm
Lloh19:
	adrp	x8, _regname@GOTPAGE
Lloh20:
	ldr	x8, [x8, _regname@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_assem_debug
	ldr	w2, [x20]
	mov	w0, #0
	mov	x1, x19
	bl	_rd_rn_rm
	add	w8, w22, #512, lsl #12          ; =2097152
	orr	w0, w0, w8
LBB0_7:
	bl	_output_w32
	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	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmp %s,#%d\n"

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

	.comm	_HOST_TEMPREG,4,2               ; @HOST_TEMPREG
l_.str.2:                               ; @.str.2
	.asciz	"cmp %s,r14\n"

l_.str.3:                               ; @.str.3
	.asciz	"cmn %s,r14\n"

.subsections_via_symbols
