	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_sgl
_print_sgl:                             ## @print_sgl
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_MPS_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hexdump
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	shll	$2, %r14d
	movslq	%r14d, %r14
	addq	-192(%rbp), %r14                ## 8-byte Folded Reload
	movl	$0, -180(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-192(%rbp), %rbx                ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	-180(%rbp)                      ## 4-byte Folded Spill
	movq	%rax, %r14
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r12d
	movq	_MPI2_SGE_FLAGS_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r12d
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_bzero
	movq	_SGL_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	$128, %ecx
	callq	_mps_parse_flags
	movl	(%r14), %ebx
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	andl	%eax, %ebx
	leaq	4(%r14), %rdi
	callq	_mps_to_u64
	leaq	L_.str.1(%rip), %rdi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_printf
	movq	_MPI2_SGE_FLAGS_END_OF_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MPI2_SGE_FLAGS_END_OF_LIST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r12d, %eax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r14), %rax
	movq	_MPI2_SGE_FLAGS_LAST_ELEMENT@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MPI2_SGE_FLAGS_CHAIN_ELEMENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	leaq	-176(%rbp), %rbx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, -196(%rbp)               ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_bzero
	movl	8(%r14), %edi
	movq	_SGL_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	$128, %ecx
	callq	_mps_parse_flags
	movl	8(%r14), %r15d
	movq	%rbx, %r13
	movl	12(%r14), %r12d
	leaq	20(%r14), %rdi
	movl	16(%r14), %ebx
	movq	_MPI2_SGE_FLAGS_64_BIT_ADDRESSING@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rdi
	callq	_mps_to_u64
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %r9d
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_printf
	movl	-196(%rbp), %r13d               ## 4-byte Reload
	cmpl	$2, %r13d
	jl	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	decl	%r13d
	movq	_MPS_FRAME_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	addq	%rsi, %rbx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hexdump
	movq	%rbx, %rax
	jmp	LBB0_12
LBB0_6:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MPS_FRAME_LEN,4,2              ## @MPS_FRAME_LEN
	.comm	_MPI2_SGE_FLAGS_SHIFT,4,2       ## @MPI2_SGE_FLAGS_SHIFT
	.comm	_SGL_FLAGS,4,2                  ## @SGL_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"seg%d flags=%x %s len= 0x%06x addr=0x%016jx\n"

	.comm	_MPI2_SGE_FLAGS_END_OF_LIST,4,2 ## @MPI2_SGE_FLAGS_END_OF_LIST
	.comm	_MPI2_SGE_FLAGS_END_OF_BUFFER,4,2 ## @MPI2_SGE_FLAGS_END_OF_BUFFER
	.comm	_MPI2_SGE_FLAGS_LAST_ELEMENT,4,2 ## @MPI2_SGE_FLAGS_LAST_ELEMENT
	.comm	_MPI2_SGE_FLAGS_CHAIN_ELEMENT,4,2 ## @MPI2_SGE_FLAGS_CHAIN_ELEMENT
	.comm	_MPI2_SGE_FLAGS_64_BIT_ADDRESSING,4,2 ## @MPI2_SGE_FLAGS_64_BIT_ADDRESSING
L_.str.3:                               ## @.str.3
	.asciz	"chain64 flags=0x%x %s len=0x%x Offset=0x%x addr=0x%016jx\n"

L_.str.4:                               ## @.str.4
	.asciz	"chain32 flags=0x%x %s len=0x%x Offset=0x%x addr=0x%08x\n"

L_str:                                  ## @str
	.asciz	"SGL for command"

L_str.5:                                ## @str.5
	.asciz	"Invalid chain element"

	.no_dead_strip	_print_sgl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_sgl
_print_sgl:                             ; @print_sgl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh5:
	adrp	x8, _MPS_FRAME_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPS_FRAME_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_hexdump
	cbz	x20, LBB0_12
; %bb.1:
	mov	w27, #0
	lsl	w8, w21, #2
	add	x26, x20, w8, sxtw
	add	x22, sp, #48
Lloh8:
	adrp	x23, _SGL_FLAGS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SGL_FLAGS@GOTPAGEOFF]
Lloh10:
	adrp	x28, _MPI2_SGE_FLAGS_END_OF_BUFFER@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MPI2_SGE_FLAGS_END_OF_BUFFER@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w27, #1
	mov	x26, x25
	cbz	x20, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
Lloh12:
	adrp	x9, _MPI2_SGE_FLAGS_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MPI2_SGE_FLAGS_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w24, w8, w9
	add	x0, sp, #48
	mov	w1, #128
	bl	_bzero
	ldr	w1, [x23]
	add	x2, sp, #48
	mov	x0, x24
	mov	w3, #128
	bl	_mps_parse_flags
	mov	x0, x26
	ldr	w8, [x0], #4
	and	w21, w8, #0xffffff
	bl	_mps_to_u64
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #24]
	stp	x24, x22, [sp, #8]
	str	x27, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh17:
	adrp	x8, _MPI2_SGE_FLAGS_END_OF_LIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MPI2_SGE_FLAGS_END_OF_LIST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	tst	w8, w24
	b.ne	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x26, #8
Lloh20:
	adrp	x8, _MPI2_SGE_FLAGS_LAST_ELEMENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MPI2_SGE_FLAGS_LAST_ELEMENT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
Lloh23:
	adrp	x9, _MPI2_SGE_FLAGS_CHAIN_ELEMENT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MPI2_SGE_FLAGS_CHAIN_ELEMENT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #48
	mov	w1, #128
	bl	_bzero
	ldr	w0, [x26, #8]
	ldr	w1, [x23]
	add	x2, sp, #48
	mov	w3, #128
	bl	_mps_parse_flags
Lloh26:
	adrp	x8, _MPI2_SGE_FLAGS_64_BIT_ADDRESSING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MPI2_SGE_FLAGS_64_BIT_ADDRESSING@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x8]
	ldp	w24, w25, [x26, #8]
	ldr	w21, [x26, #16]
	add	x8, x26, #20
	tst	w9, w24
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, #4
	bl	_mps_to_u64
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #24]
	stp	x22, x25, [sp, #8]
	str	x24, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	stp	x21, x8, [sp, #24]
	stp	x22, x25, [sp, #8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_printf
	cmp	w19, #2
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w19, w19, #1
Lloh33:
	adrp	x8, _MPS_FRAME_LEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MPS_FRAME_LEN@GOTPAGEOFF]
Lloh35:
	ldrsw	x1, [x8]
	add	x25, x20, x1
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	w3, #0
	bl	_hexdump
	mov	x20, x25
	b	LBB0_2
LBB0_11:
Lloh36:
	adrp	x0, l_str.5@PAGE
Lloh37:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
LBB0_12:
	ldur	x8, [x29, #-96]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MPS_FRAME_LEN,4,2              ; @MPS_FRAME_LEN
	.comm	_MPI2_SGE_FLAGS_SHIFT,4,2       ; @MPI2_SGE_FLAGS_SHIFT
	.comm	_SGL_FLAGS,4,2                  ; @SGL_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"seg%d flags=%x %s len= 0x%06x addr=0x%016jx\n"

	.comm	_MPI2_SGE_FLAGS_END_OF_LIST,4,2 ; @MPI2_SGE_FLAGS_END_OF_LIST
	.comm	_MPI2_SGE_FLAGS_END_OF_BUFFER,4,2 ; @MPI2_SGE_FLAGS_END_OF_BUFFER
	.comm	_MPI2_SGE_FLAGS_LAST_ELEMENT,4,2 ; @MPI2_SGE_FLAGS_LAST_ELEMENT
	.comm	_MPI2_SGE_FLAGS_CHAIN_ELEMENT,4,2 ; @MPI2_SGE_FLAGS_CHAIN_ELEMENT
	.comm	_MPI2_SGE_FLAGS_64_BIT_ADDRESSING,4,2 ; @MPI2_SGE_FLAGS_64_BIT_ADDRESSING
l_.str.3:                               ; @.str.3
	.asciz	"chain64 flags=0x%x %s len=0x%x Offset=0x%x addr=0x%016jx\n"

l_.str.4:                               ; @.str.4
	.asciz	"chain32 flags=0x%x %s len=0x%x Offset=0x%x addr=0x%08x\n"

l_str:                                  ; @str
	.asciz	"SGL for command"

l_str.5:                                ; @str.5
	.asciz	"Invalid chain element"

	.no_dead_strip	_print_sgl
.subsections_via_symbols
