	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_immed
_emit_immed:                            ## @emit_immed
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	%esi, %edi
	callq	_swreg_type
	movq	_NN_REG_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r13)
	jmp	LBB0_5
LBB0_2:
	movzbl	%bl, %edi
	callq	_reg_imm
	leaq	-72(%rbp), %rcx
	movl	%r14d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_swreg_to_unrestricted
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, (%r13)
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %edi
	callq	_swreg_type
	movq	_NN_REG_NONE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	-56(%rbp,%rdx,4), %esi
	movl	-60(%rbp), %edx
	sarl	$8, %ebx
	movl	-64(%rbp), %r10d
	movl	-72(%rbp), %eax
	movl	-68(%rbp), %r11d
	movq	%r13, %rdi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	___emit_immed
	addq	$32, %rsp
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NN_REG_IMM,8,3                 ## @NN_REG_IMM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_NN_REG_NONE,8,3                ## @NN_REG_NONE
	.no_dead_strip	_emit_immed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emit_immed
_emit_immed:                            ; @emit_immed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	mov	x0, x1
	bl	_swreg_type
Lloh0:
	adrp	x8, _NN_REG_IMM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NN_REG_IMM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x21]
	b	LBB0_5
LBB0_2:
	and	w0, w23, #0xff
	bl	_reg_imm
	mov	x2, x0
	add	x25, sp, #8
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x24
	bl	_swreg_to_unrestricted
	cbz	w0, LBB0_4
; %bb.3:
	str	w0, [x21]
	b	LBB0_5
LBB0_4:
	mov	x0, x24
	bl	_swreg_type
Lloh6:
	adrp	x8, _NN_REG_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NN_REG_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x25, #20
	add	x10, x25, #16
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	asr	w3, w23, #8
	ldp	w7, w2, [sp, #16]
	ldp	w9, w8, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x21
	mov	x4, x22
	mov	x5, x20
	mov	x6, x19
	bl	___emit_immed
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NN_REG_IMM,8,3                 ; @NN_REG_IMM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_NN_REG_NONE,8,3                ; @NN_REG_NONE
	.no_dead_strip	_emit_immed
.subsections_via_symbols
