	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_arm_addr_mode_common
_encode_arm_addr_mode_common:           ## @encode_arm_addr_mode_common
	.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, %r14
	movq	_inst@GOTPCREL(%rip), %r15
	movq	16(%r15), %rax
	movslq	%edi, %r12
	leaq	(,%r12,8), %rcx
	leaq	(%rcx,%rcx,4), %rbx
	movq	32(%rax,%rbx), %rdi
	callq	_assert
	movq	16(%r15), %rcx
	movl	(%rcx,%rbx), %eax
	shll	$16, %eax
	orl	(%r15), %eax
	movl	%eax, (%r15)
	cmpq	$0, 24(%rcx,%rbx)
	je	LBB0_8
## %bb.1:
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	(%r12,%r12,4), %rax
	cmpq	$0, 16(%rcx,%rax,8)
	je	LBB0_16
## %bb.9:
	movq	8(%rcx,%rax,8), %rdi
	callq	_assert
	testq	%r14, %r14
	je	LBB0_10
## %bb.15:
	movq	_WRITE_BACK@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_5:
	movq	_PRE_INDEX@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%r15)
	leaq	(%r12,%r12,4), %rdx
	cmpq	$0, 8(%rcx,%rdx,8)
	je	LBB0_11
## %bb.6:
	movq	_WRITE_BACK@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_11
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	callq	__
	movq	%rax, 8(%r15)
	jmp	LBB0_4
LBB0_10:
	movl	(%r15), %eax
LBB0_11:
	movq	_WRITE_BACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
LBB0_13:
	movl	%eax, %ecx
	shrl	$16, %ecx
	movl	%eax, %edx
	shrl	$12, %edx
	xorl	%ecx, %edx
	testb	$15, %dl
	jne	LBB0_4
## %bb.14:
	movq	_LOAD_BIT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	__
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_as_warn                        ## TAILCALL
LBB0_12:
	movq	_PRE_INDEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inst,24,3                      ## @inst
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"instruction does not accept preindexed addressing"

	.comm	_PRE_INDEX,4,2                  ## @PRE_INDEX
	.comm	_WRITE_BACK,4,2                 ## @WRITE_BACK
L_.str.1:                               ## @.str.1
	.asciz	"instruction does not accept unindexed addressing"

	.comm	_LOAD_BIT,4,2                   ## @LOAD_BIT
L_.str.2:                               ## @.str.2
	.asciz	"destination register same as write-back base"

L_.str.3:                               ## @.str.3
	.asciz	"source register same as write-back base"

	.no_dead_strip	_encode_arm_addr_mode_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_arm_addr_mode_common
_encode_arm_addr_mode_common:           ; @encode_arm_addr_mode_common
	.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	x19, x1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x20, _inst@GOTPAGE
Lloh1:
	ldr	x20, [x20, _inst@GOTPAGEOFF]
	ldr	x8, [x20, #16]
	sxtw	x21, w0
	add	x9, x21, w0, sxtw #2
	lsl	x22, x9, #3
	add	x8, x8, x22
	ldr	x0, [x8, #32]
	bl	_assert
	ldr	x9, [x20, #16]
	add	x10, x9, x22
	ldr	w8, [x10]
	ldr	w11, [x20]
	orr	w8, w11, w8, lsl #16
	str	w8, [x20]
	ldr	x10, [x10, #24]
	cbz	x10, LBB0_3
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
	mov	w8, #40
	madd	x8, x21, x8, x9
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_9
; %bb.4:
	mov	w8, #40
	madd	x8, x21, x8, x9
	ldr	x0, [x8, #8]
	bl	_assert
	cbz	x19, LBB0_11
; %bb.5:
Lloh4:
	adrp	x8, _WRITE_BACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WRITE_BACK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x20]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x10, _PRE_INDEX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PRE_INDEX@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x20]
	mov	w10, #40
	madd	x9, x21, x10, x9
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_12
; %bb.7:
Lloh10:
	adrp	x9, _WRITE_BACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WRITE_BACK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
LBB0_8:
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	__
	str	x0, [x20, #8]
	b	LBB0_16
LBB0_11:
	ldr	w8, [x20]
LBB0_12:
Lloh15:
	adrp	x9, _WRITE_BACK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WRITE_BACK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_13:
	lsr	w9, w8, #16
	eor	w9, w9, w8, lsr #12
	tst	w9, #0xf
	b.ne	LBB0_16
; %bb.14:
Lloh18:
	adrp	x9, _LOAD_BIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LOAD_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, l_.str.2@PAGE
Lloh22:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh23:
	adrp	x11, l_.str.3@PAGE
Lloh24:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w9, w8
	csel	x0, x11, x10, eq
	bl	__
	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	_as_warn
LBB0_15:
Lloh25:
	adrp	x9, _PRE_INDEX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PRE_INDEX@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_inst,24,3                      ; @inst
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"instruction does not accept preindexed addressing"

	.comm	_PRE_INDEX,4,2                  ; @PRE_INDEX
	.comm	_WRITE_BACK,4,2                 ; @WRITE_BACK
l_.str.1:                               ; @.str.1
	.asciz	"instruction does not accept unindexed addressing"

	.comm	_LOAD_BIT,4,2                   ; @LOAD_BIT
l_.str.2:                               ; @.str.2
	.asciz	"destination register same as write-back base"

l_.str.3:                               ; @.str.3
	.asciz	"source register same as write-back base"

	.no_dead_strip	_encode_arm_addr_mode_common
.subsections_via_symbols
