	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_EnableGecko                ## -- Begin function CON_EnableGecko
	.p2align	4, 0x90
_CON_EnableGecko:                       ## @CON_EnableGecko
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	cmpl	$1, %edi
	jg	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_usb_isgeckoalive
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	___gecko_status@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	___gecko_safe@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	cmpl	$-1, %ebx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movq	___gecko_status@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	___gecko_safe@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	jmp	LBB0_7
LBB0_1:
	movq	___gecko_status@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	___gecko_safe@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_6:
	movq	_devoptab_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_STD_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_dotab_stdout@GOTPCREL(%rip), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	(%rax), %rax
	movq	_STD_ERR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rsi, (%rax,%rcx,8)
	movq	_curr_con@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__IOLBF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_setvbuf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___gecko_status,4,2             ## @__gecko_status
	.comm	___gecko_safe,4,2               ## @__gecko_safe
	.comm	_dotab_stdout,4,2               ## @dotab_stdout
	.comm	_devoptab_list,8,3              ## @devoptab_list
	.comm	_STD_OUT,8,3                    ## @STD_OUT
	.comm	_STD_ERR,8,3                    ## @STD_ERR
	.comm	_curr_con,4,2                   ## @curr_con
	.comm	_stdout,4,2                     ## @stdout
	.comm	__IOLBF,4,2                     ## @_IOLBF
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CON_EnableGecko                ; -- Begin function CON_EnableGecko
	.p2align	2
_CON_EnableGecko:                       ; @CON_EnableGecko
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cbz	w0, LBB0_5
; %bb.1:
	mov	x20, x0
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_usb_isgeckoalive
	cbz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, ___gecko_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___gecko_status@GOTPAGEOFF]
Lloh2:
	str	w20, [x8]
Lloh3:
	adrp	x8, ___gecko_safe@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___gecko_safe@GOTPAGEOFF]
Lloh5:
	str	w19, [x8]
	cmn	w20, #1
	b.ne	LBB0_6
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, ___gecko_status@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___gecko_status@GOTPAGEOFF]
	mov	w9, #-1
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x8, ___gecko_safe@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___gecko_safe@GOTPAGEOFF]
Lloh11:
	str	w19, [x8]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, ___gecko_status@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___gecko_status@GOTPAGEOFF]
Lloh14:
	str	wzr, [x8]
Lloh15:
	adrp	x8, ___gecko_safe@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___gecko_safe@GOTPAGEOFF]
Lloh17:
	str	w19, [x8]
LBB0_6:
Lloh18:
	adrp	x8, _devoptab_list@GOTPAGE
Lloh19:
	ldr	x8, [x8, _devoptab_list@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh20:
	adrp	x10, _STD_OUT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _STD_OUT@GOTPAGEOFF]
Lloh22:
	adrp	x11, _dotab_stdout@GOTPAGE
Lloh23:
	ldr	x11, [x11, _dotab_stdout@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	str	x11, [x9, x10, lsl #3]
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _STD_ERR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _STD_ERR@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	str	x11, [x8, x9, lsl #3]
Lloh28:
	adrp	x8, _curr_con@GOTPAGE
Lloh29:
	ldr	x8, [x8, _curr_con@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh31:
	adrp	x8, _stdout@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x19, __IOLBF@GOTPAGE
Lloh35:
	ldr	x19, [x19, __IOLBF@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w2, [x19]
	mov	x1, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setvbuf
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	___gecko_status,4,2             ; @__gecko_status
	.comm	___gecko_safe,4,2               ; @__gecko_safe
	.comm	_dotab_stdout,4,2               ; @dotab_stdout
	.comm	_devoptab_list,8,3              ; @devoptab_list
	.comm	_STD_OUT,8,3                    ; @STD_OUT
	.comm	_STD_ERR,8,3                    ; @STD_ERR
	.comm	_curr_con,4,2                   ; @curr_con
	.comm	_stdout,4,2                     ; @stdout
	.comm	__IOLBF,4,2                     ; @_IOLBF
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
