	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g_gatec_create
_g_gatec_create:                        ## @g_gatec_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_g_gatec_connect
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_g_gate_xlog
LBB0_2:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_G_GATE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_mediasize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_sectorsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_queue_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_unit@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %edi
	movq	_host@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_port@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_path@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_G_GATE_CMD_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_g_gate_ioctl
	cmpl	$-1, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_G_GATE_PROVIDER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-48(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_4:
	movl	-48(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_mydaemon
	xorl	%eax, %eax
	callq	_g_gatec_loop
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot connect: %s."

	.comm	_errno,4,2                      ## @errno
	.comm	_G_GATE_VERSION,4,2             ## @G_GATE_VERSION
	.comm	_mediasize,4,2                  ## @mediasize
	.comm	_sectorsize,4,2                 ## @sectorsize
	.comm	_flags,4,2                      ## @flags
	.comm	_queue_size,4,2                 ## @queue_size
	.comm	_timeout,4,2                    ## @timeout
	.comm	_unit,4,2                       ## @unit
L_.str.1:                               ## @.str.1
	.asciz	"%s:%u %s"

	.comm	_host,8,3                       ## @host
	.comm	_port,4,2                       ## @port
	.comm	_path,8,3                       ## @path
	.comm	_G_GATE_CMD_CREATE,4,2          ## @G_GATE_CMD_CREATE
L_.str.2:                               ## @.str.2
	.asciz	"%s%u\n"

	.comm	_G_GATE_PROVIDER_NAME,8,3       ## @G_GATE_PROVIDER_NAME
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_g_gatec_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g_gatec_create
_g_gatec_create:                        ; @g_gatec_create
	.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
	bl	_g_gatec_connect
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_gate_xlog
LBB0_2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh5:
	adrp	x8, _G_GATE_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _G_GATE_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh8:
	adrp	x8, _mediasize@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mediasize@GOTPAGEOFF]
Lloh10:
	adrp	x9, _sectorsize@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sectorsize@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
Lloh14:
	adrp	x8, _flags@GOTPAGE
Lloh15:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _queue_size@GOTPAGE
Lloh18:
	ldr	x9, [x9, _queue_size@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #12]
Lloh20:
	adrp	x8, _timeout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x19, _unit@GOTPAGE
Lloh24:
	ldr	x19, [x19, _unit@GOTPAGEOFF]
	ldr	w9, [x19]
	str	w8, [sp, #8]
	str	w9, [sp]
	ldr	w0, [sp, #4]
Lloh25:
	adrp	x8, _host@GOTPAGE
Lloh26:
	ldr	x8, [x8, _host@GOTPAGEOFF]
Lloh27:
	ldr	x3, [x8]
Lloh28:
	adrp	x8, _port@GOTPAGE
Lloh29:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
Lloh31:
	adrp	x8, _path@GOTPAGE
Lloh32:
	ldr	x8, [x8, _path@GOTPAGEOFF]
Lloh33:
	ldr	x5, [x8]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh36:
	adrp	x8, _G_GATE_CMD_CREATE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _G_GATE_CMD_CREATE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_g_gate_ioctl
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_4
; %bb.3:
Lloh39:
	adrp	x8, _G_GATE_PROVIDER_NAME@GOTPAGE
Lloh40:
	ldr	x8, [x8, _G_GATE_PROVIDER_NAME@GOTPAGEOFF]
Lloh41:
	ldr	x1, [x8]
	ldr	w2, [sp]
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh44:
	adrp	x8, _stdout@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_fflush
LBB0_4:
	ldr	w8, [sp]
	str	w8, [x19]
	bl	_mydaemon
	bl	_g_gatec_loop
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot connect: %s."

	.comm	_errno,4,2                      ; @errno
	.comm	_G_GATE_VERSION,4,2             ; @G_GATE_VERSION
	.comm	_mediasize,4,2                  ; @mediasize
	.comm	_sectorsize,4,2                 ; @sectorsize
	.comm	_flags,4,2                      ; @flags
	.comm	_queue_size,4,2                 ; @queue_size
	.comm	_timeout,4,2                    ; @timeout
	.comm	_unit,4,2                       ; @unit
l_.str.1:                               ; @.str.1
	.asciz	"%s:%u %s"

	.comm	_host,8,3                       ; @host
	.comm	_port,4,2                       ; @port
	.comm	_path,8,3                       ; @path
	.comm	_G_GATE_CMD_CREATE,4,2          ; @G_GATE_CMD_CREATE
l_.str.2:                               ; @.str.2
	.asciz	"%s%u\n"

	.comm	_G_GATE_PROVIDER_NAME,8,3       ; @G_GATE_PROVIDER_NAME
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_g_gatec_create
.subsections_via_symbols
