	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_log_buffer
_put_log_buffer:                        ## @put_log_buffer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_13
## %bb.2:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_13
## %bb.3:
	cmpq	$0, (%r15)
	jle	LBB0_13
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
	leaq	32(%rax), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r12
	movl	24(%rax), %edi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	$0, 8(%r12)
	movq	%r15, 16(%r12)
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	%rax, (%r12)
	leaq	16(%r15), %r13
	cmpq	$0, 16(%r15)
	movq	%r13, %rax
	je	LBB0_7
## %bb.6:
	movq	24(%r15), %rax
	addq	$8, %rax
LBB0_7:
	movq	%r12, (%rax)
	movq	%r12, 24(%r15)
	movl	12(%r15), %ebx
	leal	1(%rbx), %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_12:
	decl	12(%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, (%r13)
	callq	_kfree
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%rdi)
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%rax)
	jle	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_put_log_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_log_buffer
_put_log_buffer:                        ; @put_log_buffer
	.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	x1, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_9
; %bb.2:
	mov	x20, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_strlen
	add	x0, x0, #32
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	ldr	w0, [x0, #24]
	mov	x1, x20
	bl	_strcpy
	stp	xzr, x22, [x21, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	str	x8, [x21]
	mov	x20, x22
	ldr	x9, [x20, #16]!
	mov	x8, x20
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x8, [x22, #24]
	add	x8, x8, #8
LBB0_7:
	str	x21, [x8]
	str	x21, [x22, #24]
	ldr	w21, [x22, #12]
	add	w8, w21, #1
	str	w8, [x22, #12]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_11
LBB0_8:
	ldr	w8, [x22, #12]
	sub	w8, w8, #1
	str	w8, [x22, #12]
	add	x0, x22, #8
	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
	b	_wake_up_interruptible
LBB0_9:
	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
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x8, [x20]
	bl	_kfree
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x0]
	cmp	x9, #0
	b.gt	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x8]
	cmp	x9, #0
	b.le	LBB0_10
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_put_log_buffer
.subsections_via_symbols
