	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_ir_buf_write
_aw_ir_buf_write:                       ## @aw_ir_buf_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_AW_IR_RAW_BUF_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	8(%rdi), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rdi)
	movb	%sil, (%rcx,%rax)
	popq	%rbp
	retq
LBB0_2:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_IR_RAW_BUF_SIZE,8,3         ## @AW_IR_RAW_BUF_SIZE
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR RX Buffer Full!\n"

	.no_dead_strip	_aw_ir_buf_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_ir_buf_write
_aw_ir_buf_write:                       ; @aw_ir_buf_write
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AW_IR_RAW_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AW_IR_RAW_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
	add	x10, x8, #1
	str	x10, [x0]
	strb	w1, [x9, x8]
	ret
LBB0_2:
Lloh3:
	adrp	x8, _bootverbose@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x0, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	_device_printf
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_IR_RAW_BUF_SIZE,8,3         ; @AW_IR_RAW_BUF_SIZE
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR RX Buffer Full!\n"

	.no_dead_strip	_aw_ir_buf_write
.subsections_via_symbols
