	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctl_getline
_ctl_getline:                           ## @ctl_getline
	.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_4
## %bb.1:
	movq	%rdi, %rdx
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	cmpq	24(%rbx), %rbx
	je	LBB0_6
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_5
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	(%rbx), %rdi
	movl	40(%rbx), %esi
	movl	36(%rbx), %edx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_9:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.10:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movslq	16(%rbx), %r12
	movq	8(%rbx), %rbx
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in ctl_getline(%p): invalid cjinf (cpriv %p)"

	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"%s: ctl_getline error fgets(%s): %s"

	.comm	_ctl_dbgfile,8,3                ## @ctl_dbgfile
	.no_dead_strip	_ctl_getline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctl_getline
_ctl_getline:                           ; @ctl_getline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_5
; %bb.1:
	mov	x2, x0
	ldr	x19, [x0]
	cbz	x19, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	cmp	x19, x8
	b.eq	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x3, x19
	bl	_syslog
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh5:
	adrp	x21, _errno@GOTPAGE
Lloh6:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	ldr	x0, [x19]
	ldp	w2, w1, [x19, #36]
	bl	_fgets
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.9:
	strb	wzr, [x0]
	b	LBB0_6
LBB0_10:
	ldr	x0, [x21]
	cbz	x0, LBB0_5
; %bb.11:
Lloh7:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	ldrsw	x21, [x19, #16]
	ldr	x19, [x19, #8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in ctl_getline(%p): invalid cjinf (cpriv %p)"

	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"%s: ctl_getline error fgets(%s): %s"

	.comm	_ctl_dbgfile,8,3                ; @ctl_dbgfile
	.no_dead_strip	_ctl_getline
.subsections_via_symbols
