	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g_gatel_rescue
_g_gatel_rescue:                        ## @g_gatel_rescue
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_path@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_gate_openflags
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_2:
	movq	_G_GATE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_G_GATE_CMD_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_g_gate_ioctl
	movl	%ebx, %edi
	callq	_g_gatel_serve
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_path,4,2                       ## @path
	.comm	_flags,4,2                      ## @flags
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open %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_gatel_rescue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g_gatel_rescue
_g_gatel_rescue:                        ; @g_gatel_rescue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _path@GOTPAGE
Lloh1:
	ldr	x20, [x20, _path@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh2:
	adrp	x8, _flags@GOTPAGE
Lloh3:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_g_gate_openflags
	mov	x1, x0
	mov	x0, x19
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
Lloh10:
	adrp	x8, _G_GATE_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _G_GATE_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _unit@GOTPAGE
Lloh14:
	ldr	x9, [x9, _unit@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	str	xzr, [sp]
Lloh16:
	adrp	x8, _G_GATE_CMD_CANCEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _G_GATE_CMD_CANCEL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_g_gate_ioctl
	mov	x0, x19
	bl	_g_gatel_serve
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_path,4,2                       ; @path
	.comm	_flags,4,2                      ; @flags
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open %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_gatel_rescue
.subsections_via_symbols
