	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzlog_open                     ## -- Begin function gzlog_open
	.p2align	4, 0x90
_gzlog_open:                            ## @gzlog_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_7
## %bb.2:
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	_LOGID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_strcpy
	movl	$-1, (%r14)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r15
	leaq	9(%rax), %rdi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	shlq	$5, %r15
	addq	%r12, %r15
	movq	%r15, 16(%r14)
	movq	%r14, %rdi
	callq	_log_open
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	8(%r14), %rdi
	callq	_free
LBB0_6:
	movq	%r14, %rdi
	callq	_free
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGID,8,3                      ## @LOGID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzlog_open                     ; -- Begin function gzlog_open
	.p2align	2
_gzlog_open:                            ; @gzlog_open
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.2:
	mov	w0, #32
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _LOGID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGID@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_strcpy
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	add	x0, x0, #9
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	mov	x1, x20
	bl	_strcpy
	add	x8, x22, x21, lsl #5
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_log_open
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_free
LBB0_6:
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGID,8,3                      ; @LOGID
.subsections_via_symbols
