	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chassis_log_write
_chassis_log_write:                     ## @chassis_log_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	(%rdi), %ebx
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	movq	%r14, %rdi
	callq	_S
	movslq	%eax, %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_3
LBB0_2:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_S
	movslq	%eax, %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_write
LBB0_3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_G_LOG_ERROR_POSITION,4,2       ## @G_LOG_ERROR_POSITION
	.comm	_G_LOG_LEVEL_MASK,4,2           ## @G_LOG_LEVEL_MASK
	.comm	_log_lvl_map,8,3                ## @log_lvl_map
	.no_dead_strip	_chassis_log_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chassis_log_write
_chassis_log_write:                     ; @chassis_log_write
	.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
	mov	x20, x2
	ldr	w21, [x0]
	cmn	w21, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_S
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x21
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x19, _STDERR_FILENO@GOTPAGE
Lloh1:
	ldr	x19, [x19, _STDERR_FILENO@GOTPAGEOFF]
	ldr	w21, [x19]
	mov	x0, x20
	bl	_S
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x21
	bl	_write
LBB0_3:
	ldr	w0, [x19]
	mov	w8, #1
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_write
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_G_LOG_ERROR_POSITION,4,2       ; @G_LOG_ERROR_POSITION
	.comm	_G_LOG_LEVEL_MASK,4,2           ; @G_LOG_LEVEL_MASK
	.comm	_log_lvl_map,8,3                ; @log_lvl_map
	.no_dead_strip	_chassis_log_write
.subsections_via_symbols
