	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_arm_cp_address
_encode_arm_cp_address:                 ## @encode_arm_cp_address
	.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
	movq	_inst@GOTPCREL(%rip), %r12
	movq	16(%r12), %rax
	movslq	%edi, %rbx
	shlq	$5, %rbx
	movl	(%rax,%rbx), %edi
	shll	$16, %edi
	orl	%edi, (%r12)
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	cmpq	$0, 16(%rax,%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 24(%rax,%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_assert
	movq	16(%r12), %rax
	cmpq	$0, 16(%rax,%rbx)
	je	LBB0_4
## %bb.9:
	movq	_PRE_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r12)
	jmp	LBB0_10
LBB0_4:
	cmpq	$0, 24(%rax,%rbx)
	je	LBB0_5
LBB0_10:
	cmpq	$0, 8(%rax,%rbx)
	je	LBB0_16
## %bb.11:
	movl	(%rax,%rbx), %eax
	movq	_REG_PC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_13:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.15:
	movq	_WRITE_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_16:
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.17:
	movl	%r13d, 4(%r12)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_18:
	movl	4(%r12), %ecx
	movq	_BFD_RELOC_ARM_ALU_PC_G0_NC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	setge	%dl
	movq	_BFD_RELOC_ARM_LDC_SB_G2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	setle	%bl
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	testb	%bl, %dl
	jne	LBB0_24
## %bb.19:
	movq	_BFD_RELOC_ARM_LDR_PC_G0@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_24
## %bb.20:
	movq	_thumb_mode@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_22
## %bb.21:
	movq	_BFD_RELOC_ARM_T32_CP_OFF_IMM@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_5:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax,%rbx)
	sete	%dil
	callq	_assert
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.8:
	movq	16(%r12), %rax
	movl	(%r12), %ecx
	orl	4(%rax,%rbx), %ecx
	movq	_INDEX_UP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
LBB0_7:
	callq	__
	movq	%rax, 8(%r12)
	movq	_FAIL@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_BFD_RELOC_ARM_CP_OFF_IMM@GOTPCREL(%rip), %rcx
LBB0_23:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r12)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_inst,24,3                      ## @inst
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"instruction does not support unindexed addressing"

	.comm	_FAIL,4,2                       ## @FAIL
	.comm	_INDEX_UP,4,2                   ## @INDEX_UP
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_PRE_INDEX,4,2                  ## @PRE_INDEX
	.comm	_REG_PC,4,2                     ## @REG_PC
L_.str.1:                               ## @.str.1
	.asciz	"pc may not be used with write-back"

L_.str.2:                               ## @.str.2
	.asciz	"instruction does not support writeback"

	.comm	_WRITE_BACK,4,2                 ## @WRITE_BACK
	.comm	_BFD_RELOC_ARM_ALU_PC_G0_NC,4,2 ## @BFD_RELOC_ARM_ALU_PC_G0_NC
	.comm	_BFD_RELOC_ARM_LDC_SB_G2,4,2    ## @BFD_RELOC_ARM_LDC_SB_G2
	.comm	_BFD_RELOC_ARM_LDR_PC_G0,4,2    ## @BFD_RELOC_ARM_LDR_PC_G0
	.comm	_thumb_mode,8,3                 ## @thumb_mode
	.comm	_BFD_RELOC_ARM_T32_CP_OFF_IMM,4,2 ## @BFD_RELOC_ARM_T32_CP_OFF_IMM
	.comm	_BFD_RELOC_ARM_CP_OFF_IMM,4,2   ## @BFD_RELOC_ARM_CP_OFF_IMM
	.no_dead_strip	_encode_arm_cp_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_arm_cp_address
_encode_arm_cp_address:                 ; @encode_arm_cp_address
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x22, _inst@GOTPAGE
Lloh1:
	ldr	x22, [x22, _inst@GOTPAGEOFF]
	ldr	x8, [x22, #16]
	sxtw	x23, w0
	add	x8, x8, x23, lsl #5
	ldr	w9, [x8]
	ldr	w10, [x22]
	orr	w9, w10, w9, lsl #16
	str	w9, [x22]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x8, #24]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_assert
	ldr	x8, [x22, #16]
	add	x9, x8, x23, lsl #5
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_5
; %bb.4:
Lloh2:
	adrp	x9, _PRE_INDEX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRE_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x22]
	orr	w9, w10, w9
	str	w9, [x22]
	b	LBB0_6
LBB0_5:
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_17
LBB0_6:
	add	x9, x8, x23, lsl #5
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_11
; %bb.7:
	lsl	x9, x23, #5
	ldr	w8, [x8, x9]
Lloh5:
	adrp	x9, _REG_PC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REG_PC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_9:
	cbz	w20, LBB0_19
; %bb.10:
Lloh10:
	adrp	x8, _WRITE_BACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WRITE_BACK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_11:
	cbz	w19, LBB0_13
; %bb.12:
	str	w19, [x22, #4]
	b	LBB0_24
LBB0_13:
	ldr	w9, [x22, #4]
Lloh13:
	adrp	x8, _BFD_RELOC_ARM_ALU_PC_G0_NC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BFD_RELOC_ARM_ALU_PC_G0_NC@GOTPAGEOFF]
Lloh15:
	adrp	x10, _BFD_RELOC_ARM_LDC_SB_G2@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BFD_RELOC_ARM_LDC_SB_G2@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w10, [x10]
	cmp	w9, w10
	ccmp	w9, w8, #8, le
Lloh19:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b.ge	LBB0_25
; %bb.14:
Lloh21:
	adrp	x10, _BFD_RELOC_ARM_LDR_PC_G0@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BFD_RELOC_ARM_LDR_PC_G0@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_25
; %bb.15:
Lloh24:
	adrp	x8, _thumb_mode@GOTPAGE
Lloh25:
	ldr	x8, [x8, _thumb_mode@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.16:
Lloh27:
	adrp	x8, _BFD_RELOC_ARM_T32_CP_OFF_IMM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BFD_RELOC_ARM_T32_CP_OFF_IMM@GOTPAGEOFF]
	b	LBB0_23
LBB0_17:
	add	x8, x8, x23, lsl #5
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	cbz	w21, LBB0_20
; %bb.18:
	ldr	x8, [x22, #16]
	add	x8, x8, x23, lsl #5
	ldr	w8, [x8, #4]
	ldr	w9, [x22]
Lloh29:
	adrp	x10, _INDEX_UP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _INDEX_UP@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh31:
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x22]
	b	LBB0_24
LBB0_19:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
LBB0_21:
	bl	__
	str	x0, [x22, #8]
Lloh36:
	adrp	x8, _FAIL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh38:
	adrp	x8, _BFD_RELOC_ARM_CP_OFF_IMM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BFD_RELOC_ARM_CP_OFF_IMM@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	str	w8, [x22, #4]
LBB0_24:
Lloh40:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_25:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_inst,24,3                      ; @inst
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"instruction does not support unindexed addressing"

	.comm	_FAIL,4,2                       ; @FAIL
	.comm	_INDEX_UP,4,2                   ; @INDEX_UP
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_PRE_INDEX,4,2                  ; @PRE_INDEX
	.comm	_REG_PC,4,2                     ; @REG_PC
l_.str.1:                               ; @.str.1
	.asciz	"pc may not be used with write-back"

l_.str.2:                               ; @.str.2
	.asciz	"instruction does not support writeback"

	.comm	_WRITE_BACK,4,2                 ; @WRITE_BACK
	.comm	_BFD_RELOC_ARM_ALU_PC_G0_NC,4,2 ; @BFD_RELOC_ARM_ALU_PC_G0_NC
	.comm	_BFD_RELOC_ARM_LDC_SB_G2,4,2    ; @BFD_RELOC_ARM_LDC_SB_G2
	.comm	_BFD_RELOC_ARM_LDR_PC_G0,4,2    ; @BFD_RELOC_ARM_LDR_PC_G0
	.comm	_thumb_mode,8,3                 ; @thumb_mode
	.comm	_BFD_RELOC_ARM_T32_CP_OFF_IMM,4,2 ; @BFD_RELOC_ARM_T32_CP_OFF_IMM
	.comm	_BFD_RELOC_ARM_CP_OFF_IMM,4,2   ; @BFD_RELOC_ARM_CP_OFF_IMM
	.no_dead_strip	_encode_arm_cp_address
.subsections_via_symbols
