	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ql_gen_reg_dump                ## -- Begin function ql_gen_reg_dump
	.p2align	4, 0x90
_ql_gen_reg_dump:                       ## @ql_gen_reg_dump
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	96(%rsi), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MPI_COREDUMP_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r15)
	movabsq	$481036337156, %rax             ## imm = 0x7000000004
	movq	%rax, 96(%r15)
	movl	104(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	92(%r15), %rdi
	movq	_MISC_NIC_INFO_SEG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$20, %edx
	callq	_ql_build_coredump_seg_header
	movups	(%r14), %xmm0
	movups	%xmm0, 76(%r15)
	leaq	72(%r15), %rdi
	movq	_NIC1_CONTROL_SEG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$12, %edx
	callq	_ql_build_coredump_seg_header
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ql_read32
	movq	64(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	addq	$4, %rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	leaq	56(%r15), %rdi
	movq	_INTR_STATES_SEG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$12, %edx
	callq	_ql_build_coredump_seg_header
	movq	48(%r15), %rsi
	movq	%r14, %rdi
	callq	_ql_get_intr_states
	leaq	40(%r15), %rdi
	movq	_CAM_ENTRIES_SEG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	movl	$12, %edx
	callq	_ql_build_coredump_seg_header
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	callq	_ql_get_cam_entries
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	24(%r15), %rdi
	movq	_ROUTING_WORDS_SEG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rcx
	movl	$12, %edx
	callq	_ql_build_coredump_seg_header
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_ql_get_routing_entries
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%r15), %rdi
	movq	_ETS_SEG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rcx
	movl	$12, %edx
	callq	_ql_build_coredump_seg_header
	movq	(%r15), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ql_get_ets_regs                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_COREDUMP_COOKIE,4,2        ## @MPI_COREDUMP_COOKIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MPI Coredump"

	.comm	_MISC_NIC_INFO_SEG_NUM,4,2      ## @MISC_NIC_INFO_SEG_NUM
L_.str.1:                               ## @.str.1
	.asciz	"MISC NIC INFO"

	.comm	_NIC1_CONTROL_SEG_NUM,4,2       ## @NIC1_CONTROL_SEG_NUM
L_.str.2:                               ## @.str.2
	.asciz	"NIC Registers"

	.comm	_INTR_STATES_SEG_NUM,4,2        ## @INTR_STATES_SEG_NUM
L_.str.3:                               ## @.str.3
	.asciz	"INTR States"

	.comm	_CAM_ENTRIES_SEG_NUM,4,2        ## @CAM_ENTRIES_SEG_NUM
L_.str.4:                               ## @.str.4
	.asciz	"CAM Entries"

	.comm	_ROUTING_WORDS_SEG_NUM,4,2      ## @ROUTING_WORDS_SEG_NUM
L_.str.5:                               ## @.str.5
	.asciz	"Routing Words"

	.comm	_ETS_SEG_NUM,4,2                ## @ETS_SEG_NUM
L_.str.6:                               ## @.str.6
	.asciz	"ETS Registers"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ql_gen_reg_dump
lCPI0_0:
	.long	4                               ; 0x4
	.long	112                             ; 0x70
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ql_gen_reg_dump
	.p2align	2
_ql_gen_reg_dump:                       ; @ql_gen_reg_dump
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	add	x0, x1, #96
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _MPI_COREDUMP_COOKIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_COREDUMP_COOKIE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #108]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #96]
	ldr	w0, [x20, #104]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_memcpy
	add	x0, x20, #92
Lloh7:
	adrp	x8, _MISC_NIC_INFO_SEG_NUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MISC_NIC_INFO_SEG_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #20
	bl	_ql_build_coredump_seg_header
	ldr	q0, [x19]
	stur	q0, [x20, #76]
	add	x0, x20, #72
Lloh12:
	adrp	x8, _NIC1_CONTROL_SEG_NUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NIC1_CONTROL_SEG_NUM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #12
	bl	_ql_build_coredump_seg_header
	mov	x21, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ql_read32
	ldr	x8, [x20, #64]
	str	w0, [x8, x21]
	add	x21, x21, #4
	cmp	x21, #256
	b.ne	LBB0_1
; %bb.2:
	add	x0, x20, #56
Lloh17:
	adrp	x8, _INTR_STATES_SEG_NUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INTR_STATES_SEG_NUM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w2, #12
	bl	_ql_build_coredump_seg_header
	ldr	x1, [x20, #48]
	mov	x0, x19
	bl	_ql_get_intr_states
	add	x0, x20, #40
Lloh22:
	adrp	x8, _CAM_ENTRIES_SEG_NUM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CAM_ENTRIES_SEG_NUM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x3, l_.str.4@PAGE
Lloh26:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w2, #12
	bl	_ql_build_coredump_seg_header
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_ql_get_cam_entries
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, x20, #24
Lloh27:
	adrp	x8, _ROUTING_WORDS_SEG_NUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ROUTING_WORDS_SEG_NUM@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x3, l_.str.5@PAGE
Lloh31:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w2, #12
	bl	_ql_build_coredump_seg_header
	ldr	x1, [x20, #16]
	mov	x0, x19
	bl	_ql_get_routing_entries
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x0, x20, #8
Lloh32:
	adrp	x8, _ETS_SEG_NUM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETS_SEG_NUM@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x3, l_.str.6@PAGE
Lloh36:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	w2, #12
	bl	_ql_build_coredump_seg_header
	ldr	x1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ql_get_ets_regs
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_COREDUMP_COOKIE,4,2        ; @MPI_COREDUMP_COOKIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MPI Coredump"

	.comm	_MISC_NIC_INFO_SEG_NUM,4,2      ; @MISC_NIC_INFO_SEG_NUM
l_.str.1:                               ; @.str.1
	.asciz	"MISC NIC INFO"

	.comm	_NIC1_CONTROL_SEG_NUM,4,2       ; @NIC1_CONTROL_SEG_NUM
l_.str.2:                               ; @.str.2
	.asciz	"NIC Registers"

	.comm	_INTR_STATES_SEG_NUM,4,2        ; @INTR_STATES_SEG_NUM
l_.str.3:                               ; @.str.3
	.asciz	"INTR States"

	.comm	_CAM_ENTRIES_SEG_NUM,4,2        ; @CAM_ENTRIES_SEG_NUM
l_.str.4:                               ; @.str.4
	.asciz	"CAM Entries"

	.comm	_ROUTING_WORDS_SEG_NUM,4,2      ; @ROUTING_WORDS_SEG_NUM
l_.str.5:                               ; @.str.5
	.asciz	"Routing Words"

	.comm	_ETS_SEG_NUM,4,2                ; @ETS_SEG_NUM
l_.str.6:                               ; @.str.6
	.asciz	"ETS Registers"

.subsections_via_symbols
