	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sge_context
_get_sge_context:                       ## @get_sge_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	(%rsi), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_14
LBB0_3:
	movq	_SGE_CONTEXT_EGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_SGE_CONTEXT_INGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_SGE_CONTEXT_FLM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movq	_SGE_CONTEXT_CNM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	8(%r14), %rdi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_str_to_number
	cmpb	$0, (%rax)
	je	LBB0_15
## %bb.5:
	movq	8(%r14), %rsi
	leaq	L_.str.6(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_warnx
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	_CHELSIO_T4_GET_SGE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_doit
	testl	%eax, %eax
	jne	LBB0_20
## %bb.16:
	movq	_chip_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	cmpl	$4, %esi
	jne	LBB0_18
## %bb.17:
	callq	_show_t4_ctxt
	jmp	LBB0_19
LBB0_18:
	callq	_show_t5t6_ctxt
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sge_context: incorrect number of arguments."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"egress"

	.comm	_SGE_CONTEXT_EGRESS,4,2         ## @SGE_CONTEXT_EGRESS
L_.str.2:                               ## @.str.2
	.asciz	"ingress"

	.comm	_SGE_CONTEXT_INGRESS,4,2        ## @SGE_CONTEXT_INGRESS
L_.str.3:                               ## @.str.3
	.asciz	"fl"

	.comm	_SGE_CONTEXT_FLM,4,2            ## @SGE_CONTEXT_FLM
L_.str.4:                               ## @.str.4
	.asciz	"cong"

	.comm	_SGE_CONTEXT_CNM,4,2            ## @SGE_CONTEXT_CNM
L_.str.5:                               ## @.str.5
	.asciz	"unknown context type \"%s\"; known types are egress, ingress, fl, and cong."

L_.str.6:                               ## @.str.6
	.asciz	"invalid context id \"%s\""

	.comm	_CHELSIO_T4_GET_SGE_CONTEXT,4,2 ## @CHELSIO_T4_GET_SGE_CONTEXT
	.comm	_chip_id,4,2                    ## @chip_id
	.no_dead_strip	_get_sge_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sge_context
_get_sge_context:                       ; @get_sge_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	xzr, [sp, #16]
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x20, [x1]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.3:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.4:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.5:
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh12:
	adrp	x8, _SGE_CONTEXT_EGRESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SGE_CONTEXT_EGRESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _SGE_CONTEXT_INGRESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SGE_CONTEXT_INGRESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _SGE_CONTEXT_FLM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SGE_CONTEXT_FLM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _SGE_CONTEXT_CNM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SGE_CONTEXT_CNM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	mov	x2, #0
	bl	_str_to_number
	ldrb	w8, [x0]
	cbz	w8, LBB0_15
; %bb.12:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_13:
	bl	_warnx
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	ldr	x8, [sp, #24]
	str	x8, [sp, #8]
Lloh25:
	adrp	x8, _CHELSIO_T4_GET_SGE_CONTEXT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CHELSIO_T4_GET_SGE_CONTEXT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_doit
	cbnz	w0, LBB0_14
; %bb.16:
Lloh28:
	adrp	x8, _chip_id@GOTPAGE
Lloh29:
	ldr	x8, [x8, _chip_id@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x0, sp, #8
	cmp	w1, #4
	b.ne	LBB0_18
; %bb.17:
	bl	_show_t4_ctxt
	b	LBB0_19
LBB0_18:
	bl	_show_t5t6_ctxt
LBB0_19:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sge_context: incorrect number of arguments."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"egress"

	.comm	_SGE_CONTEXT_EGRESS,4,2         ; @SGE_CONTEXT_EGRESS
l_.str.2:                               ; @.str.2
	.asciz	"ingress"

	.comm	_SGE_CONTEXT_INGRESS,4,2        ; @SGE_CONTEXT_INGRESS
l_.str.3:                               ; @.str.3
	.asciz	"fl"

	.comm	_SGE_CONTEXT_FLM,4,2            ; @SGE_CONTEXT_FLM
l_.str.4:                               ; @.str.4
	.asciz	"cong"

	.comm	_SGE_CONTEXT_CNM,4,2            ; @SGE_CONTEXT_CNM
l_.str.5:                               ; @.str.5
	.asciz	"unknown context type \"%s\"; known types are egress, ingress, fl, and cong."

l_.str.6:                               ; @.str.6
	.asciz	"invalid context id \"%s\""

	.comm	_CHELSIO_T4_GET_SGE_CONTEXT,4,2 ; @CHELSIO_T4_GET_SGE_CONTEXT
	.comm	_chip_id,4,2                    ; @chip_id
	.no_dead_strip	_get_sge_context
.subsections_via_symbols
