	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrp_immed_relo
_wrp_immed_relo:                        ## @wrp_immed_relo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$65536, %edx                    ## imm = 0x10000
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	%ecx, %r14d
	movq	_IMMED_WIDTH_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IMMED_SHIFT_0B@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_emit_immed
	movq	_OP_RELO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_FIELD_PREP
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	orl	%eax, -4(%rcx,%rdx,4)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relocation of a large immediate!\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_IMMED_WIDTH_ALL,4,2            ## @IMMED_WIDTH_ALL
	.comm	_IMMED_SHIFT_0B,4,2             ## @IMMED_SHIFT_0B
	.comm	_OP_RELO_TYPE,4,2               ## @OP_RELO_TYPE
	.no_dead_strip	_wrp_immed_relo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrp_immed_relo
_wrp_immed_relo:                        ; @wrp_immed_relo
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w2, #16, lsl #12                ; =65536
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_2:
	mov	x20, x3
Lloh5:
	adrp	x8, _IMMED_WIDTH_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IMMED_WIDTH_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _IMMED_SHIFT_0B@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMMED_SHIFT_0B@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_emit_immed
Lloh11:
	adrp	x8, _OP_RELO_TYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OP_RELO_TYPE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_PREP
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	ldur	w9, [x8, #-4]
	orr	w9, w9, w0
	stur	w9, [x8, #-4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relocation of a large immediate!\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_IMMED_WIDTH_ALL,4,2            ; @IMMED_WIDTH_ALL
	.comm	_IMMED_SHIFT_0B,4,2             ; @IMMED_SHIFT_0B
	.comm	_OP_RELO_TYPE,4,2               ; @OP_RELO_TYPE
	.no_dead_strip	_wrp_immed_relo
.subsections_via_symbols
