	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_arm_addr_mode_2
_encode_arm_addr_mode_2:                ## @encode_arm_addr_mode_2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	callq	_encode_arm_addr_mode_common
	movq	_inst@GOTPCREL(%rip), %rax
	movq	16(%rax), %rdx
	movslq	%ebx, %rsi
	shlq	$5, %rsi
	cmpq	$0, 24(%rdx,%rsi)
	je	LBB0_7
## %bb.1:
	movq	_INST_IMMEDIATE@GOTPCREL(%rip), %rdi
	movl	(%rax), %ecx
	orl	(%rdi), %ecx
	orl	(%rdx,%rsi), %ecx
	movl	%ecx, (%rax)
	cmpl	$0, 16(%rdx,%rsi)
	je	LBB0_2
## %bb.3:
	cmpq	$0, 8(%rdx,%rsi)
	jne	LBB0_4
	jmp	LBB0_10
LBB0_7:
	movq	8(%rax), %rcx
	movq	_BFD_RELOC_UNUSED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.8:
	movq	_BFD_RELOC_ARM_OFFSET_IMM@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_2:
	movq	_INDEX_UP@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movl	%ecx, (%rax)
	cmpq	$0, 8(%rdx,%rsi)
	je	LBB0_10
LBB0_4:
	movl	4(%rdx,%rsi), %edx
	movq	_SHIFT_RRX@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_6
## %bb.5:
	movq	_SHIFT_ROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$5, %edx
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_10
LBB0_6:
	shll	$5, %edx
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_BFD_RELOC_ARM_SHIFT_IMM@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inst,24,3                      ## @inst
	.comm	_INST_IMMEDIATE,4,2             ## @INST_IMMEDIATE
	.comm	_INDEX_UP,4,2                   ## @INDEX_UP
	.comm	_SHIFT_RRX,4,2                  ## @SHIFT_RRX
	.comm	_SHIFT_ROR,4,2                  ## @SHIFT_ROR
	.comm	_BFD_RELOC_ARM_SHIFT_IMM,8,3    ## @BFD_RELOC_ARM_SHIFT_IMM
	.comm	_BFD_RELOC_UNUSED,8,3           ## @BFD_RELOC_UNUSED
	.comm	_BFD_RELOC_ARM_OFFSET_IMM,8,3   ## @BFD_RELOC_ARM_OFFSET_IMM
	.no_dead_strip	_encode_arm_addr_mode_2
.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_2
_encode_arm_addr_mode_2:                ; @encode_arm_addr_mode_2
	.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
	bl	_encode_arm_addr_mode_common
Lloh0:
	adrp	x8, _inst@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inst@GOTPAGEOFF]
	ldr	x10, [x8, #16]
	sxtw	x11, w19
	add	x12, x10, x11, lsl #5
	ldr	x9, [x12, #24]
	cbz	x9, LBB0_6
; %bb.1:
Lloh2:
	adrp	x9, _INST_IMMEDIATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INST_IMMEDIATE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w13, [x8]
	orr	w9, w13, w9
	ldr	w13, [x12]
	orr	w9, w13, w9
	str	w9, [x8]
	ldr	w12, [x12, #16]
	cbnz	w12, LBB0_3
; %bb.2:
Lloh5:
	adrp	x12, _INDEX_UP@GOTPAGE
Lloh6:
	ldr	x12, [x12, _INDEX_UP@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	orr	w9, w12, w9
	str	w9, [x8]
LBB0_3:
	add	x10, x10, x11, lsl #5
	ldr	x11, [x10, #8]
	cbz	x11, LBB0_10
; %bb.4:
	ldr	w10, [x10, #4]
Lloh8:
	adrp	x11, _SHIFT_RRX@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SHIFT_RRX@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_8
; %bb.5:
Lloh11:
	adrp	x10, _SHIFT_ROR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SHIFT_ROR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10, lsl #5
	str	w9, [x8]
	b	LBB0_10
LBB0_6:
	ldr	x9, [x8, #8]
Lloh14:
	adrp	x10, _BFD_RELOC_UNUSED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BFD_RELOC_UNUSED@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.7:
Lloh17:
	adrp	x9, _BFD_RELOC_ARM_OFFSET_IMM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BFD_RELOC_ARM_OFFSET_IMM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	orr	w9, w9, w10, lsl #5
	str	w9, [x8]
Lloh19:
	adrp	x9, _BFD_RELOC_ARM_SHIFT_IMM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BFD_RELOC_ARM_SHIFT_IMM@GOTPAGEOFF]
LBB0_9:
	ldr	x9, [x9]
	str	x9, [x8, #8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_inst,24,3                      ; @inst
	.comm	_INST_IMMEDIATE,4,2             ; @INST_IMMEDIATE
	.comm	_INDEX_UP,4,2                   ; @INDEX_UP
	.comm	_SHIFT_RRX,4,2                  ; @SHIFT_RRX
	.comm	_SHIFT_ROR,4,2                  ; @SHIFT_ROR
	.comm	_BFD_RELOC_ARM_SHIFT_IMM,8,3    ; @BFD_RELOC_ARM_SHIFT_IMM
	.comm	_BFD_RELOC_UNUSED,8,3           ; @BFD_RELOC_UNUSED
	.comm	_BFD_RELOC_ARM_OFFSET_IMM,8,3   ; @BFD_RELOC_ARM_OFFSET_IMM
	.no_dead_strip	_encode_arm_addr_mode_2
.subsections_via_symbols
