	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_connection_cport_shutdown
_gb_connection_cport_shutdown:          ## @gb_connection_cport_shutdown
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	8(%r15), %r13
	callq	_gb_connection_is_static
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_gb_connection_is_offloaded
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r13), %r8
	testq	%r8, %r8
	je	LBB0_7
## %bb.3:
	movl	4(%rbx), %esi
	movq	_GB_OPERATION_TIMEOUT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	*%r8
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gb_connection_shutdown_operation
LBB0_5:
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_dev_err
	movl	%r13d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_OPERATION_TIMEOUT_DEFAULT,4,2 ## @GB_OPERATION_TIMEOUT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: failed to send cport shutdown (phase %d): %d\n"

	.no_dead_strip	_gb_connection_cport_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_connection_cport_shutdown
_gb_connection_cport_shutdown:          ; @gb_connection_cport_shutdown
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x20, #8]
	bl	_gb_connection_is_static
	cbz	x0, LBB0_2
LBB0_1:
	mov	w22, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_gb_connection_is_offloaded
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	w1, [x21, #4]
Lloh0:
	adrp	x9, _GB_OPERATION_TIMEOUT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GB_OPERATION_TIMEOUT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x2, x19
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	w2, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x4, x22
	bl	_dev_err
LBB0_6:
	mov	x0, x22
	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_7:
	mov	x0, x21
	mov	x1, x19
	bl	_gb_connection_shutdown_operation
	mov	x22, x0
	cbnz	w0, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_OPERATION_TIMEOUT_DEFAULT,4,2 ; @GB_OPERATION_TIMEOUT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: failed to send cport shutdown (phase %d): %d\n"

	.no_dead_strip	_gb_connection_cport_shutdown
.subsections_via_symbols
