	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g_gatec_loop
_g_gatec_loop:                          ## @g_gatec_loop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_signop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_LOG_NOTICE@GOTPCREL(%rip), %r13
	movq	_host@GOTPCREL(%rip), %rbx
	movq	_path@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	leaq	-56(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_G_GATE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_G_GATE_CMD_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_g_gate_ioctl
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	xorl	%eax, %eax
	callq	_g_gatec_start
	movl	(%r13), %edi
	movl	(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_g_gate_log
	xorl	%eax, %eax
	callq	_g_gatec_connect
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$2, %edi
	callq	_sleep
	movl	(%r13), %edi
	movl	(%rbx), %edx
	movl	(%r14), %ecx
	movq	%r12, %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_signop,4,2                     ## @signop
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disconnected [%s %s]. Connecting..."

	.comm	_host,4,2                       ## @host
	.comm	_path,4,2                       ## @path
L_.str.1:                               ## @.str.1
	.asciz	"Connecting [%s %s]..."

	.comm	_G_GATE_VERSION,4,2             ## @G_GATE_VERSION
	.comm	_unit,4,2                       ## @unit
	.comm	_G_GATE_CMD_CANCEL,4,2          ## @G_GATE_CMD_CANCEL
	.no_dead_strip	_g_gatec_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g_gatec_loop
_g_gatec_loop:                          ; @g_gatec_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _signop@GOTPAGE
Lloh4:
	ldr	x8, [x8, _signop@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_signal
Lloh6:
	adrp	x21, _LOG_NOTICE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _LOG_NOTICE@GOTPAGEOFF]
Lloh8:
	adrp	x22, _host@GOTPAGE
Lloh9:
	ldr	x22, [x22, _host@GOTPAGEOFF]
Lloh10:
	adrp	x23, _path@GOTPAGE
Lloh11:
	ldr	x23, [x23, _path@GOTPAGEOFF]
Lloh12:
	adrp	x19, l_.str@PAGE
Lloh13:
	add	x19, x19, l_.str@PAGEOFF
Lloh14:
	adrp	x20, l_.str.1@PAGE
Lloh15:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh16:
	adrp	x24, _G_GATE_VERSION@GOTPAGE
Lloh17:
	ldr	x24, [x24, _G_GATE_VERSION@GOTPAGEOFF]
Lloh18:
	adrp	x25, _unit@GOTPAGE
Lloh19:
	ldr	x25, [x25, _unit@GOTPAGEOFF]
Lloh20:
	adrp	x26, _G_GATE_CMD_CANCEL@GOTPAGE
Lloh21:
	ldr	x26, [x26, _G_GATE_CMD_CANCEL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	stp	w9, w8, [sp, #8]
	str	xzr, [sp]
	ldr	w0, [x26]
	mov	x1, sp
	bl	_g_gate_ioctl
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	bl	_g_gatec_start
	ldr	w0, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x1, x19
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_g_gate_log
	bl	_g_gatec_connect
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #2
	bl	_sleep
	ldr	w0, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x1, x20
	b	LBB0_3
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_signop,4,2                     ; @signop
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disconnected [%s %s]. Connecting..."

	.comm	_host,4,2                       ; @host
	.comm	_path,4,2                       ; @path
l_.str.1:                               ; @.str.1
	.asciz	"Connecting [%s %s]..."

	.comm	_G_GATE_VERSION,4,2             ; @G_GATE_VERSION
	.comm	_unit,4,2                       ; @unit
	.comm	_G_GATE_CMD_CANCEL,4,2          ; @G_GATE_CMD_CANCEL
	.no_dead_strip	_g_gatec_loop
.subsections_via_symbols
