	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function record_arm_to_thumb_glue
_record_arm_to_thumb_glue:              ## @record_arm_to_thumb_glue
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_elf32_arm_hash_table
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_BFD_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 32(%r12)
	setne	%dil
	callq	_BFD_ASSERT
	movq	32(%r12), %rdi
	movq	_ARM2THUMB_GLUE_SECTION_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bfd_get_section_by_name
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_BFD_ASSERT
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	_ARM2THUMB_GLUE_ENTRY_NAME@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_strlen
	leaq	(%rbx,%rax), %rdi
	incq	%rdi
	callq	_bfd_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BFD_ASSERT
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_sprintf
	leaq	24(%r12), %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%ecx, %edx
	callq	_elf_link_hash_lookup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	(%r12), %r9
	movq	32(%r12), %rsi
	incq	%r9
	movq	_BSF_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-56(%rbp), %r11
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r8
	pushq	%r11
	pushq	%rax
	pushq	%r10
	pushq	$0
	callq	__bfd_generic_link_add_one_symbol
	addq	$32, %rsp
	movq	-56(%rbp), %r13
	movq	_STB_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STT_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ELF_ST_INFO
	movl	%eax, 4(%r13)
	movl	$1, (%r13)
	movq	%rbx, %rdi
	callq	_free
	movq	_ARM2THUMB_PIC_GLUE_SIZE@GOTPCREL(%rip), %rax
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	je	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_10:
	movq	(%rax), %rax
	addl	%eax, (%rcx)
	addq	%rax, (%r12)
LBB0_11:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 16(%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.7:
	cmpq	$0, 8(%r12)
	jne	LBB0_9
## %bb.8:
	movq	_ARM2THUMB_STATIC_GLUE_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ARM2THUMB_V5_STATIC_GLUE_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM2THUMB_GLUE_SECTION_NAME,4,2 ## @ARM2THUMB_GLUE_SECTION_NAME
	.comm	_ARM2THUMB_GLUE_ENTRY_NAME,8,3  ## @ARM2THUMB_GLUE_ENTRY_NAME
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_BSF_GLOBAL,4,2                 ## @BSF_GLOBAL
	.comm	_STB_LOCAL,4,2                  ## @STB_LOCAL
	.comm	_STT_FUNC,4,2                   ## @STT_FUNC
	.comm	_ARM2THUMB_PIC_GLUE_SIZE,8,3    ## @ARM2THUMB_PIC_GLUE_SIZE
	.comm	_ARM2THUMB_V5_STATIC_GLUE_SIZE,8,3 ## @ARM2THUMB_V5_STATIC_GLUE_SIZE
	.comm	_ARM2THUMB_STATIC_GLUE_SIZE,8,3 ## @ARM2THUMB_STATIC_GLUE_SIZE
	.no_dead_strip	_record_arm_to_thumb_glue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function record_arm_to_thumb_glue
_record_arm_to_thumb_glue:              ; @record_arm_to_thumb_glue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	x22, [x1, #8]
	bl	_elf32_arm_hash_table
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_BFD_ASSERT
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_BFD_ASSERT
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x8, _ARM2THUMB_GLUE_SECTION_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM2THUMB_GLUE_SECTION_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bfd_get_section_by_name
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_BFD_ASSERT
	mov	x0, x22
	bl	_strlen
	mov	x23, x0
Lloh3:
	adrp	x24, _ARM2THUMB_GLUE_ENTRY_NAME@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ARM2THUMB_GLUE_ENTRY_NAME@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_strlen
	add	x8, x23, x0
	add	x0, x8, #1
	bl	_bfd_malloc
	mov	x23, x0
	bl	_BFD_ASSERT
	ldr	x1, [x24]
	mov	x0, x23
	mov	x2, x22
	bl	_sprintf
	add	x24, x19, #24
Lloh5:
	adrp	x25, _FALSE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh7:
	adrp	x26, _TRUE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x0, x24
	mov	x1, x23
	mov	x3, x2
	bl	_elf_link_hash_lookup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x23
	bl	_free
	b	LBB0_7
LBB0_2:
	str	xzr, [sp, #24]
	ldr	x8, [x19]
	add	x5, x8, #1
	ldr	x1, [x19, #32]
Lloh9:
	adrp	x8, _BSF_GLOBAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BSF_GLOBAL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w7, [x26]
	ldr	w8, [x25]
	add	x9, sp, #24
	str	x9, [sp, #8]
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x23
	mov	x4, x20
	mov	x6, #0
	bl	__bfd_generic_link_add_one_symbol
	ldr	x22, [sp, #24]
Lloh12:
	adrp	x8, _STB_LOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STB_LOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _STT_FUNC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STT_FUNC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ELF_ST_INFO
	mov	w8, #1
	stp	w8, w0, [x22]
	mov	x0, x23
	bl	_free
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x24]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_5:
Lloh18:
	adrp	x8, _ARM2THUMB_PIC_GLUE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARM2THUMB_PIC_GLUE_SIZE@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	ldr	w9, [x20]
	add	w9, w9, w8
	str	w9, [x20]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _ARM2THUMB_V5_STATIC_GLUE_SIZE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ARM2THUMB_V5_STATIC_GLUE_SIZE@GOTPAGEOFF]
Lloh22:
	adrp	x10, _ARM2THUMB_STATIC_GLUE_SIZE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _ARM2THUMB_STATIC_GLUE_SIZE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	b	LBB0_6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM2THUMB_GLUE_SECTION_NAME,4,2 ; @ARM2THUMB_GLUE_SECTION_NAME
	.comm	_ARM2THUMB_GLUE_ENTRY_NAME,8,3  ; @ARM2THUMB_GLUE_ENTRY_NAME
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_BSF_GLOBAL,4,2                 ; @BSF_GLOBAL
	.comm	_STB_LOCAL,4,2                  ; @STB_LOCAL
	.comm	_STT_FUNC,4,2                   ; @STT_FUNC
	.comm	_ARM2THUMB_PIC_GLUE_SIZE,8,3    ; @ARM2THUMB_PIC_GLUE_SIZE
	.comm	_ARM2THUMB_V5_STATIC_GLUE_SIZE,8,3 ; @ARM2THUMB_V5_STATIC_GLUE_SIZE
	.comm	_ARM2THUMB_STATIC_GLUE_SIZE,8,3 ; @ARM2THUMB_STATIC_GLUE_SIZE
	.no_dead_strip	_record_arm_to_thumb_glue
.subsections_via_symbols
