	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_connection_hd_cport_quiesce
_gb_connection_hd_cport_quiesce:        ## @gb_connection_hd_cport_quiesce
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r14
	movq	8(%r14), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rdi)
	setne	%cl
	leaq	8(,%rcx,4), %rdx
	movl	4(%rdi), %esi
	movq	_GB_CONNECTION_CPORT_QUIESCE_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_CONNECTION_CPORT_QUIESCE_TIMEOUT,4,2 ## @GB_CONNECTION_CPORT_QUIESCE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: failed to quiesce host cport: %d\n"

	.no_dead_strip	_gb_connection_hd_cport_quiesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_connection_hd_cport_quiesce
_gb_connection_hd_cport_quiesce:        ; @gb_connection_hd_cport_quiesce
	.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
	ldr	x19, [x0, #16]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0, #8]
	mov	w10, #12
	mov	w11, #8
	cmp	x9, #0
	csel	x2, x11, x10, eq
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x9, _GB_CONNECTION_CPORT_QUIESCE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GB_CONNECTION_CPORT_QUIESCE_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_CONNECTION_CPORT_QUIESCE_TIMEOUT,4,2 ; @GB_CONNECTION_CPORT_QUIESCE_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: failed to quiesce host cport: %d\n"

	.no_dead_strip	_gb_connection_hd_cport_quiesce
.subsections_via_symbols
