	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_char
_put_char:                              ## @put_char
	.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
	movl	%esi, %r14d
	movq	8(%rdi), %rbx
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_sanity_check
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movzbl	%r14b, %edi
	callq	_DBGINFO
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.2:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	xorl	%r15d, %r15d
	cmpl	$0, 28(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jge	LBB0_5
## %bb.4:
	movq	(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movb	%r14b, (%rcx,%rax)
	movl	$1, %r15d
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"put_char"

	.no_dead_strip	_put_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_char
_put_char:                              ; @put_char
	.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
	mov	x19, x1
	ldr	x20, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sanity_check
	cbz	x0, LBB0_2
LBB0_1:
	mov	w19, #0
	b	LBB0_8
LBB0_2:
	mov	w0, w19
	bl	_DBGINFO
	ldr	x8, [x20]
	cbz	x8, LBB0_1
; %bb.3:
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_6
; %bb.4:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
	ldr	x9, [x20]
	add	x10, x8, #1
	str	x10, [x20, #8]
	strb	w19, [x9, x8]
	mov	w19, #1
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"put_char"

	.no_dead_strip	_put_char
.subsections_via_symbols
