	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_connection_svc_connection_create
_gb_connection_svc_connection_create:   ## @gb_connection_svc_connection_create
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_gb_connection_is_static
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	24(%rbx), %r13
	movq	_GB_SVC_CPORT_FLAG_CSV_N@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_gb_connection_flow_control_disabled
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_GB_SVC_CPORT_FLAG_CSD_N@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_gb_connection_e2efc_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_GB_SVC_CPORT_FLAG_CSD_N@GOTPCREL(%rip), %rax
	movq	_GB_SVC_CPORT_FLAG_E2EFC@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
LBB0_5:
	movq	8(%r12), %rdi
	movl	(%rdi), %esi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %edx
	movl	(%r13), %ecx
	movl	%r15d, %r9d
	callq	_gb_svc_connection_create
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	movl	%r15d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SVC_CPORT_FLAG_CSV_N,4,2    ## @GB_SVC_CPORT_FLAG_CSV_N
	.comm	_GB_SVC_CPORT_FLAG_CSD_N,4,2    ## @GB_SVC_CPORT_FLAG_CSD_N
	.comm	_GB_SVC_CPORT_FLAG_E2EFC,4,2    ## @GB_SVC_CPORT_FLAG_E2EFC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: failed to create svc connection: %d\n"

	.no_dead_strip	_gb_connection_svc_connection_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_connection_svc_connection_create
_gb_connection_svc_connection_create:   ; @gb_connection_svc_connection_create
	.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, x0
	ldr	x21, [x0, #8]
	bl	_gb_connection_is_static
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
	ldr	x22, [x19, #24]
Lloh0:
	adrp	x8, _GB_SVC_CPORT_FLAG_CSV_N@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SVC_CPORT_FLAG_CSV_N@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_gb_connection_flow_control_disabled
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _GB_SVC_CPORT_FLAG_CSD_N@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GB_SVC_CPORT_FLAG_CSD_N@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_gb_connection_e2efc_enabled
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _GB_SVC_CPORT_FLAG_CSD_N@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GB_SVC_CPORT_FLAG_CSD_N@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GB_SVC_CPORT_FLAG_E2EFC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GB_SVC_CPORT_FLAG_E2EFC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_6:
	ldr	x0, [x21, #8]
	ldr	w1, [x0]
	ldr	w3, [x22]
	ldp	w4, w2, [x19, #16]
	mov	x5, x20
	bl	_gb_svc_connection_create
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SVC_CPORT_FLAG_CSV_N,4,2    ; @GB_SVC_CPORT_FLAG_CSV_N
	.comm	_GB_SVC_CPORT_FLAG_CSD_N,4,2    ; @GB_SVC_CPORT_FLAG_CSD_N
	.comm	_GB_SVC_CPORT_FLAG_E2EFC,4,2    ; @GB_SVC_CPORT_FLAG_E2EFC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: failed to create svc connection: %d\n"

	.no_dead_strip	_gb_connection_svc_connection_create
.subsections_via_symbols
