	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_immediate
_load_immediate:                        ## @load_immediate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_SIMM_MAX@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_3
## %bb.1:
	movq	_SIMM_MIN@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jg	LBB0_3
## %bb.2:
	movq	_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_D
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_S1
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_IMM
	orl	%eax, %ebx
	orl	%r13d, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_SETHI@GOTPCREL(%rip), %rax
	movl	%r12d, %ebx
	shrl	$10, %ebx
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_D
	orl	%eax, %ebx
	movl	%r15d, %edi
	callq	_DR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_push_inst
	movl	%eax, %edi
	callq	_FAIL_IF
	andl	$1023, %r12d                    ## imm = 0x3FF
	je	LBB0_6
## %bb.4:
	movq	_OR@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_D
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_S1
	movq	_IMM_ARG@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	%r12d, %ebx
	orl	(%rcx), %ebx
LBB0_5:
	movl	%r15d, %edi
	callq	_DR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_push_inst                      ## TAILCALL
LBB0_6:
	movq	_SLJIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIMM_MAX,4,2                   ## @SIMM_MAX
	.comm	_SIMM_MIN,4,2                   ## @SIMM_MIN
	.comm	_OR,4,2                         ## @OR
	.comm	_SETHI,4,2                      ## @SETHI
	.comm	_IMM_ARG,4,2                    ## @IMM_ARG
	.comm	_SLJIT_SUCCESS,4,2              ## @SLJIT_SUCCESS
	.no_dead_strip	_load_immediate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_immediate
_load_immediate:                        ; @load_immediate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SIMM_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIMM_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SIMM_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIMM_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #0, ge
	b.le	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _SETHI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SETHI@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_D
	orr	w8, w22, w21, lsr #10
	orr	w22, w8, w0
	mov	x0, x20
	bl	_DR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_push_inst
	bl	_FAIL_IF
	ands	w22, w21, #0x3ff
	b.eq	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _OR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OR@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_D
	mov	x21, x0
	mov	x0, x20
	bl	_S1
Lloh12:
	adrp	x8, _IMM_ARG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IMM_ARG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w9, w23, w22
	orr	w9, w9, w21
	orr	w9, w9, w0
	orr	w21, w9, w8
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _OR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OR@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_D
	orr	w22, w0, w22
	mov	w0, #0
	bl	_S1
	orr	w22, w22, w0
	mov	x0, x21
	bl	_IMM
	orr	w21, w22, w0
LBB0_4:
	mov	x0, x20
	bl	_DR
	mov	x2, x0
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_push_inst
LBB0_5:
Lloh18:
	adrp	x8, _SLJIT_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SLJIT_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SIMM_MAX,4,2                   ; @SIMM_MAX
	.comm	_SIMM_MIN,4,2                   ; @SIMM_MIN
	.comm	_OR,4,2                         ; @OR
	.comm	_SETHI,4,2                      ; @SETHI
	.comm	_IMM_ARG,4,2                    ; @IMM_ARG
	.comm	_SLJIT_SUCCESS,4,2              ; @SLJIT_SUCCESS
	.no_dead_strip	_load_immediate
.subsections_via_symbols
