	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_arm_addr_mode_3
_encode_arm_addr_mode_3:                ## @encode_arm_addr_mode_3
	.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	_inst@GOTPCREL(%rip), %r14
	movq	16(%r14), %rax
	movslq	%edi, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	cmpq	$0, 8(%rax,%rbx,8)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rax,%rbx,8)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, 24(%r14)
	jmp	LBB0_8
LBB0_3:
	callq	_encode_arm_addr_mode_common
	movq	16(%r14), %rcx
	cmpq	$0, 8(%rcx,%rbx,8)
	je	LBB0_6
## %bb.4:
	movl	8(%r14), %eax
	orl	4(%rcx,%rbx,8), %eax
	movl	%eax, 8(%r14)
	cmpl	$0, (%rcx,%rbx,8)
	jne	LBB0_8
## %bb.5:
	movq	_INDEX_UP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_8
LBB0_6:
	movq	_HWOFFSET_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	(%r14), %rax
	movq	_BFD_RELOC_UNUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_BFD_RELOC_ARM_OFFSET_IMM8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inst,32,3                      ## @inst
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"instruction does not accept scaled register index"

	.comm	_INDEX_UP,4,2                   ## @INDEX_UP
	.comm	_HWOFFSET_IMM,4,2               ## @HWOFFSET_IMM
	.comm	_BFD_RELOC_UNUSED,8,3           ## @BFD_RELOC_UNUSED
	.comm	_BFD_RELOC_ARM_OFFSET_IMM8,8,3  ## @BFD_RELOC_ARM_OFFSET_IMM8
	.no_dead_strip	_encode_arm_addr_mode_3
.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_3
_encode_arm_addr_mode_3:                ; @encode_arm_addr_mode_3
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x19, _inst@GOTPAGE
Lloh1:
	ldr	x19, [x19, _inst@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	sxtw	x20, w0
	mov	w9, #24
	smaddl	x9, w0, w9, x8
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_3
; %bb.1:
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	str	w0, [x19, #24]
	b	LBB0_8
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_encode_arm_addr_mode_common
	ldr	x8, [x19, #16]
	mov	w9, #24
	madd	x9, x20, x9, x8
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_6
; %bb.4:
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	w9, [x19, #8]
	ldp	w11, w10, [x8]
	orr	w8, w9, w10
	str	w8, [x19, #8]
	cbnz	w11, LBB0_8
; %bb.5:
Lloh4:
	adrp	x9, _INDEX_UP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INDEX_UP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _HWOFFSET_IMM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HWOFFSET_IMM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _BFD_RELOC_UNUSED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BFD_RELOC_UNUSED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _BFD_RELOC_ARM_OFFSET_IMM8@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BFD_RELOC_ARM_OFFSET_IMM8@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_inst,32,3                      ; @inst
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"instruction does not accept scaled register index"

	.comm	_INDEX_UP,4,2                   ; @INDEX_UP
	.comm	_HWOFFSET_IMM,4,2               ; @HWOFFSET_IMM
	.comm	_BFD_RELOC_UNUSED,8,3           ; @BFD_RELOC_UNUSED
	.comm	_BFD_RELOC_ARM_OFFSET_IMM8,8,3  ; @BFD_RELOC_ARM_OFFSET_IMM8
	.no_dead_strip	_encode_arm_addr_mode_3
.subsections_via_symbols
