	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tls_mask
_get_tls_mask:                          ## @get_tls_mask
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	8(%r8), %edi
	callq	_ELF64_R_SYM
	movq	%r15, (%rsp)
	leaq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	callq	_get_sym_h
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_24
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpb	$0, (%rax)
	movl	$1, %eax
	jne	LBB0_24
## %bb.3:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
	jmp	LBB0_24
LBB0_4:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_5:
	callq	_ppc64_elf_section_data
	movq	(%rax), %rax
	movq	_sec_toc@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:
	movq	8(%rax), %rax
	movq	_bfd_link_hash_defined@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_BFD_ASSERT
	movq	-64(%rbp), %rax
	addq	$16, %rax
	jmp	LBB0_11
LBB0_10:
	movq	-80(%rbp), %rax
LBB0_11:
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r12d
	leal	(%rax,%r12), %r13d
	xorl	%edi, %edi
	testb	$7, %r13b
	sete	%dil
	callq	_BFD_ASSERT
	movq	-48(%rbp), %rdi
	callq	_ppc64_elf_section_data
	movq	8(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%r12d, %ecx
	addl	$7, %ecx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %r12
	movq	(%rax,%r12,8), %r13
	movq	-48(%rbp), %rdi
	callq	_ppc64_elf_section_data
	movq	8(%rax), %rax
	movl	8(%rax,%r12,8), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r13, (%rax)
LBB0_13:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi
	callq	_ppc64_elf_section_data
	movq	16(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, (%r13)
LBB0_15:
	movq	%r15, (%rsp)
	leaq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_get_sym_h
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_24
## %bb.16:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	8(%rax), %rcx
	movq	_bfd_link_hash_defined@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_21
## %bb.18:
	movq	_bfd_link_hash_defweak@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_21
LBB0_8:
	movl	$1, %eax
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %eax
	cmpl	$-2, -56(%rbp)                  ## 4-byte Folded Reload
	jae	LBB0_23
	jmp	LBB0_24
LBB0_21:
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.22:
	movl	$1, %eax
	cmpl	$-3, -56(%rbp)                  ## 4-byte Folded Reload
	jbe	LBB0_24
LBB0_23:
	movl	$1, %eax
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_toc,8,3                    ## @sec_toc
	.comm	_bfd_link_hash_defined,8,3      ## @bfd_link_hash_defined
	.comm	_bfd_link_hash_defweak,8,3      ## @bfd_link_hash_defweak
	.no_dead_strip	_get_tls_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tls_mask
_get_tls_mask:                          ; @get_tls_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x24, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w0, [x4, #8]
	bl	_ELF64_R_SYM
	mov	x5, x0
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, x21
	mov	x4, x20
	mov	x6, x19
	bl	_get_sym_h
	cbz	w0, LBB0_21
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	ldrb	w8, [x8]
	ldr	x0, [sp, #8]
	cmp	w8, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_4
	b	LBB0_20
LBB0_3:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_20
LBB0_4:
	bl	_ppc64_elf_section_data
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _sec_toc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sec_toc@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.5:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x25, _bfd_link_hash_defined@GOTPAGE
Lloh4:
	ldr	x25, [x25, _bfd_link_hash_defined@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x8, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_BFD_ASSERT
	ldr	x8, [sp, #24]
	add	x8, x8, #16
	b	LBB0_8
LBB0_7:
	ldr	x8, [sp, #16]
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x24]
	add	w24, w8, w9
	tst	w24, #0x7
	cset	w0, eq
	bl	_BFD_ASSERT
	ldr	x0, [sp, #8]
	bl	_ppc64_elf_section_data
	ldr	x8, [x0, #8]
	add	w9, w24, #7
	cmp	w24, #0
	csel	w27, w9, w24, lt
	asr	w9, w27, #3
	sbfiz	x26, x9, #3, #32
	ldr	x24, [x8, x26]
	ldr	x0, [sp, #8]
	bl	_ppc64_elf_section_data
	ldr	x8, [x0, #8]
	add	x8, x26, x8
	ldr	w26, [x8, #8]
	cbz	x23, LBB0_10
; %bb.9:
	str	x24, [x23]
LBB0_10:
	cbz	x22, LBB0_12
; %bb.11:
	sbfx	x23, x27, #3, #29
	ldr	x0, [sp, #8]
	bl	_ppc64_elf_section_data
	ldr	x8, [x0, #16]
	ldr	w8, [x8, x23, lsl #2]
	str	w8, [x22]
LBB0_12:
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, x21
	mov	x4, x20
	mov	x5, x24
	mov	x6, x19
	bl	_get_sym_h
	cbz	w0, LBB0_21
; %bb.13:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_18
; %bb.14:
	ldr	x9, [x8, #8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.eq	LBB0_16
; %bb.15:
Lloh5:
	adrp	x10, _bfd_link_hash_defweak@GOTPAGE
Lloh6:
	ldr	x10, [x10, _bfd_link_hash_defweak@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_20
LBB0_16:
	ldr	w8, [x8]
	mov	w0, #1
	cbnz	w8, LBB0_21
; %bb.17:
	cmn	w26, #3
	b.hi	LBB0_19
	b	LBB0_21
LBB0_18:
	cmn	w26, #2
	b.lo	LBB0_20
LBB0_19:
	mov	w8, #1
	sub	w0, w8, w26
	b	LBB0_21
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_toc,8,3                    ; @sec_toc
	.comm	_bfd_link_hash_defined,8,3      ; @bfd_link_hash_defined
	.comm	_bfd_link_hash_defweak,8,3      ; @bfd_link_hash_defweak
	.no_dead_strip	_get_tls_mask
.subsections_via_symbols
