	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf64_dump_thread              ## -- Begin function elf64_dump_thread
	.p2align	4, 0x90
_elf64_dump_thread:                     ## @elf64_dump_thread
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_use_xsave@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%rdi, %rbx
	callq	_fpugetregs
	movq	_NT_X86_XSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_get_pcb_user_save_td
	movq	_cpu_max_ext_state_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-40(%rbp), %r8
	movl	%r12d, %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_elf64_populate_note
	movq	_xsave_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-40(%rbp), %rdx
	movq	_X86_XSTATE_XCR0_OFFSET@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	movl	%ecx, (%rdx,%rsi)
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_NT_X86_XSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cpu_max_ext_state_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_elf64_populate_note
LBB0_5:
	movq	%rax, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_xsave,8,3                  ## @use_xsave
	.comm	_NT_X86_XSTATE,4,2              ## @NT_X86_XSTATE
	.comm	_cpu_max_ext_state_size,4,2     ## @cpu_max_ext_state_size
	.comm	_xsave_mask,4,2                 ## @xsave_mask
	.comm	_X86_XSTATE_XCR0_OFFSET,4,2     ## @X86_XSTATE_XCR0_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf64_dump_thread              ; -- Begin function elf64_dump_thread
	.p2align	2
_elf64_dump_thread:                     ; @elf64_dump_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
Lloh0:
	adrp	x8, _use_xsave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_xsave@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x21, x0
	bl	_fpugetregs
Lloh3:
	adrp	x8, _NT_X86_XSTATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NT_X86_XSTATE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_get_pcb_user_save_td
	mov	x1, x0
Lloh6:
	adrp	x8, _cpu_max_ext_state_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cpu_max_ext_state_size@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x22
	mov	x2, x20
	bl	_elf64_populate_note
Lloh9:
	adrp	x8, _xsave_mask@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xsave_mask@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
Lloh12:
	adrp	x10, _X86_XSTATE_XCR0_OFFSET@GOTPAGE
Lloh13:
	ldr	x10, [x10, _X86_XSTATE_XCR0_OFFSET@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	str	w8, [x9, x10]
	b	LBB0_5
LBB0_3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _NT_X86_XSTATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NT_X86_XSTATE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _cpu_max_ext_state_size@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cpu_max_ext_state_size@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, #0
	mov	x2, #0
	mov	x4, #0
	bl	_elf64_populate_note
LBB0_5:
	str	x0, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_use_xsave,8,3                  ; @use_xsave
	.comm	_NT_X86_XSTATE,4,2              ; @NT_X86_XSTATE
	.comm	_cpu_max_ext_state_size,4,2     ; @cpu_max_ext_state_size
	.comm	_xsave_mask,4,2                 ; @xsave_mask
	.comm	_X86_XSTATE_XCR0_OFFSET,4,2     ; @X86_XSTATE_XCR0_OFFSET
.subsections_via_symbols
