	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcrel_assemble                 ## -- Begin function pcrel_assemble
	.p2align	4, 0x90
_pcrel_assemble:                        ## @pcrel_assemble
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_rt1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %r15
	movl	(%rcx,%r15,4), %esi
	movq	%rax, %rdi
	callq	_get_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %r14d
	movl	8(%rbx), %eax
	btl	%r14d, %eax
	jae	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_opcode@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpl	$12, (%rax,%r15,4)
	setne	%dil
	callq	_assert
	movq	_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%r15,2), %eax
	addl	$4, %eax
	movl	%eax, %ebx
	andl	$-4, %ebx
	movq	_imm@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r12), %rdx
	cmpl	$9, (%rdx,%r15,4)
	cmovel	%eax, %ebx
	addl	(%rcx,%r15,4), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_assem_debug
	movl	%ebx, %edi
	callq	_can_direct_read
	movl	%eax, %edi
	callq	_assert
	movl	%ebx, %edi
	callq	_map_address
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_emit_movimm
	movq	(%r12), %rax
	cmpl	$9, (%rax,%r15,4)
	jne	LBB0_3
## %bb.5:
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_movswl_indexed            ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_emit_readword_indexed
	movl	%r14d, %edi
	movl	$16, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_rorimm                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rt1,8,3                        ## @rt1
	.comm	_imm,8,3                        ## @imm
	.comm	_HOST_REGS,4,2                  ## @HOST_REGS
	.comm	_HOST_CCREG,8,3                 ## @HOST_CCREG
	.comm	_CCREG,8,3                      ## @CCREG
	.comm	_opcode,8,3                     ## @opcode
	.comm	_start,4,2                      ## @start
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't do constant propagation, doing PC-relatve load\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcrel_assemble                 ; -- Begin function pcrel_assemble
	.p2align	2
_pcrel_assemble:                        ; @pcrel_assemble
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _rt1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rt1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, w20, sxtw #2]
	bl	_get_reg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21, #8]
	lsr	w8, w8, w0
	tbz	w8, #0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	sxtw	x8, w20
Lloh3:
	adrp	x21, _opcode@GOTPAGE
Lloh4:
	ldr	x21, [x21, _opcode@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x22, x8, #2
	ldr	w8, [x9, x22]
	cmp	w8, #12
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x8, _start@GOTPAGE
Lloh6:
	ldr	x8, [x8, _start@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w20, lsl #1
	add	w8, w8, #4
	and	w9, w8, #0xfffffffc
Lloh8:
	adrp	x10, _imm@GOTPAGE
Lloh9:
	ldr	x10, [x10, _imm@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w10, [x10, x22]
	ldr	x11, [x21]
	ldr	w11, [x11, x22]
	cmp	w11, #9
	csel	w8, w8, w9, eq
	add	w20, w8, w10
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_assem_debug
	mov	x0, x20
	bl	_can_direct_read
	bl	_assert
	mov	x0, x20
	bl	_map_address
	mov	x1, x19
	bl	_emit_movimm
	ldr	x8, [x21]
	ldr	w8, [x8, x22]
	cmp	w8, #9
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	mov	x1, x19
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_emit_movswl_indexed
LBB0_5:
	mov	w0, #0
	mov	x1, x19
	mov	x2, x19
	bl	_emit_readword_indexed
	mov	x0, x19
	mov	w1, #16
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_emit_rorimm
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_rt1,8,3                        ; @rt1
	.comm	_imm,8,3                        ; @imm
	.comm	_HOST_REGS,4,2                  ; @HOST_REGS
	.comm	_HOST_CCREG,8,3                 ; @HOST_CCREG
	.comm	_CCREG,8,3                      ; @CCREG
	.comm	_opcode,8,3                     ; @opcode
	.comm	_start,4,2                      ; @start
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't do constant propagation, doing PC-relatve load\n"

.subsections_via_symbols
