	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thumb_legitimize_address       ## -- Begin function thumb_legitimize_address
	.p2align	4, 0x90
_thumb_legitimize_address:              ## @thumb_legitimize_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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_arm_tls_symbol_p
	testq	%rax, %rax
	je	LBB0_1
## %bb.26:
	movq	_NULL_RTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_legitimize_tls_address         ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_GET_CODE
	movq	_PLUS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_17
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_XEXP
	movq	%rax, %rdi
	callq	_GET_CODE
	movq	_CONST_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_XEXP
	movq	%rax, %rdi
	callq	_INTVAL
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_GET_MODE_SIZE
	shll	$5, %eax
	cmpl	%eax, %r12d
	jge	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_XEXP
	movq	%rax, %rdi
	callq	_INTVAL
	testl	%eax, %eax
	js	LBB0_5
LBB0_17:
	movq	%rbx, %rdi
	callq	_GET_CODE
	cmpq	(%r13), %rax
	jne	LBB0_23
## %bb.18:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_XEXP
	movq	_SImode@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_s_register_operand
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XEXP
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_s_register_operand
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XEXP
	movq	_NULL_RTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_force_operand
	movq	%rax, %r12
	movl	(%r13), %r13d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_XEXP
	movl	%r13d, %edi
	movq	%r12, %rsi
	jmp	LBB0_21
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XEXP
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_XEXP
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_INTVAL
	movl	%eax, %r13d
	movq	_optimize_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.6:
	testl	%r13d, %r13d
	js	LBB0_14
## %bb.7:
	movl	%r14d, %edi
	callq	_GET_MODE_SIZE
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	addl	$256, %ecx                      ## imm = 0x100
	cmpl	%ecx, %r13d
	jge	LBB0_16
## %bb.8:
	movl	%r14d, %edi
	callq	_GET_MODE_SIZE
	movl	%eax, %ebx
	cmpl	$256, %r13d                     ## imm = 0x100
	jb	LBB0_10
## %bb.9:
	addl	%r13d, %ebx
	addl	$-256, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_14:
	cmpl	$-255, %r13d
	jb	LBB0_16
## %bb.15:
	movq	_NULL_RTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_force_operand
	jmp	LBB0_22
LBB0_16:
	movq	_SImode@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_force_reg
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_21:
	movq	%rax, %rdx
	callq	_gen_rtx_PLUS
LBB0_22:
	movq	%rax, %rbx
LBB0_23:
	movq	_flag_pic@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.24:
	movq	_NULL_RTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_legitimize_pic_address
	cmpq	%r15, %rax
	cmovneq	%rax, %rbx
LBB0_25:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	shll	$5, %ebx
	orl	$8, %ebx
	movl	%r14d, %edi
	callq	_GET_MODE_SIZE
	cmpl	%ebx, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jge	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	shll	$5, %ebx
	subl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	shll	$5, %eax
	negl	%eax
	andl	%r13d, %eax
	movl	%eax, %ebx
LBB0_13:
	subl	%ebx, %r13d
	movl	%r13d, %esi
	callq	_plus_constant
	movq	_NULL_RTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_force_operand
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_plus_constant
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_NULL_RTX,4,2                   ## @NULL_RTX
	.comm	_PLUS,8,3                       ## @PLUS
	.comm	_CONST_INT,8,3                  ## @CONST_INT
	.comm	_optimize_size,8,3              ## @optimize_size
	.comm	_SImode,4,2                     ## @SImode
	.comm	_flag_pic,8,3                   ## @flag_pic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thumb_legitimize_address       ; -- Begin function thumb_legitimize_address
	.p2align	2
_thumb_legitimize_address:              ; @thumb_legitimize_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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_arm_tls_symbol_p
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NULL_RTX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NULL_RTX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	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
	b	_legitimize_tls_address
LBB0_2:
	mov	x0, x21
	bl	_GET_CODE
Lloh3:
	adrp	x23, _PLUS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PLUS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	mov	w1, #1
	bl	_XEXP
	bl	_GET_CODE
Lloh5:
	adrp	x8, _CONST_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONST_INT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #1
	bl	_XEXP
	bl	_INTVAL
	mov	x22, x0
	mov	x0, x20
	bl	_GET_MODE_SIZE
	cmp	w22, w0, lsl #5
	b.ge	LBB0_10
; %bb.5:
	mov	x0, x21
	mov	w1, #1
	bl	_XEXP
	bl	_INTVAL
	tbnz	w0, #31, LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_GET_CODE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.7:
	mov	x0, x21
	mov	w1, #1
	bl	_XEXP
Lloh8:
	adrp	x23, _SImode@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SImode@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_s_register_operand
	cbz	x0, LBB0_20
; %bb.8:
	mov	x0, x21
	mov	w1, #0
	bl	_XEXP
	ldr	w1, [x23]
	bl	_s_register_operand
	cbnz	x0, LBB0_20
; %bb.9:
	mov	x0, x21
	mov	w1, #0
	bl	_XEXP
Lloh10:
	adrp	x8, _NULL_RTX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NULL_RTX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_force_operand
	mov	x22, x0
	ldr	w23, [x23]
	mov	x0, x21
	mov	w1, #1
	bl	_XEXP
	mov	x2, x0
	mov	x0, x23
	b	LBB0_18
LBB0_10:
	mov	x0, x21
	mov	w1, #0
	bl	_XEXP
	mov	x22, x0
	mov	x0, x21
	mov	w1, #1
	bl	_XEXP
	mov	x24, x0
	bl	_INTVAL
	mov	x23, x0
Lloh13:
	adrp	x8, _optimize_size@GOTPAGE
Lloh14:
	ldr	x8, [x8, _optimize_size@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.11:
	tbnz	w23, #31, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_GET_MODE_SIZE
	lsl	w8, w0, #5
	sub	w8, w8, w0
	add	w8, w8, #256
	cmp	w23, w8
	b.ge	LBB0_17
; %bb.13:
	mov	x0, x20
	bl	_GET_MODE_SIZE
	cmp	w23, #256
	b.lo	LBB0_23
; %bb.14:
	add	w8, w23, w0
	sub	w21, w8, #256
	b	LBB0_26
LBB0_15:
	cmn	w23, #255
	b.lo	LBB0_17
; %bb.16:
Lloh16:
	adrp	x8, _NULL_RTX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NULL_RTX@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_force_operand
	b	LBB0_19
LBB0_17:
Lloh19:
	adrp	x21, _SImode@GOTPAGE
Lloh20:
	ldr	x21, [x21, _SImode@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x24
	bl	_force_reg
	mov	x2, x0
	ldr	w0, [x21]
LBB0_18:
	mov	x1, x22
	bl	_gen_rtx_PLUS
LBB0_19:
	mov	x21, x0
LBB0_20:
Lloh21:
	adrp	x8, _flag_pic@GOTPAGE
Lloh22:
	ldr	x8, [x8, _flag_pic@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
Lloh24:
	adrp	x8, _NULL_RTX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NULL_RTX@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_legitimize_pic_address
	cmp	x0, x19
	csel	x21, x21, x0, eq
LBB0_22:
	mov	x0, x21
	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
LBB0_23:
	mov	w21, #8
	bfi	w21, w0, #5, #27
	mov	x0, x20
	bl	_GET_MODE_SIZE
	cmp	w23, w21
	b.ge	LBB0_25
; %bb.24:
	lsl	w8, w0, #5
	sub	w21, w8, w0
	b	LBB0_26
LBB0_25:
	neg	w8, w0, lsl #5
	and	w21, w8, w23
LBB0_26:
	sub	w1, w23, w21
	mov	x0, x22
	bl	_plus_constant
Lloh27:
	adrp	x8, _NULL_RTX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NULL_RTX@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_force_operand
	mov	x1, x21
	bl	_plus_constant
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NULL_RTX,4,2                   ; @NULL_RTX
	.comm	_PLUS,8,3                       ; @PLUS
	.comm	_CONST_INT,8,3                  ; @CONST_INT
	.comm	_optimize_size,8,3              ; @optimize_size
	.comm	_SImode,4,2                     ; @SImode
	.comm	_flag_pic,8,3                   ; @flag_pic
.subsections_via_symbols
