	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function consumeBuffer
_consumeBuffer:                         ## @consumeBuffer
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	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	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_r_cons_printf
LBB0_5:
	movq	_R_BUF_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_r_buf_seek
	movq	%r15, %rdi
	callq	_r_buf_size
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_r_buf_read8
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_r_cons_printf
	incl	%ebx
	movq	%r15, %rdi
	callq	_r_buf_size
	cmpl	%eax, %ebx
	jl	LBB0_7
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r_cons_printf                  ## TAILCALL
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	xorl	%eax, %eax
	jmp	_r_cons_printf                  ## TAILCALL
LBB0_9:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_R_BUF_SET,4,2                  ## @R_BUF_SET
L_.str.2:                               ## @.str.2
	.asciz	"%02x"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_consumeBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function consumeBuffer
_consumeBuffer:                         ; @consumeBuffer
	.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_7
; %bb.1:
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.2:
	str	x1, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_cons_printf
LBB0_3:
Lloh2:
	adrp	x8, _R_BUF_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_BUF_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_r_buf_seek
	mov	x0, x19
	bl	_r_buf_size
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w21, #0
Lloh5:
	adrp	x20, l_.str.2@PAGE
Lloh6:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_r_buf_read8
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x20
	bl	_r_cons_printf
	add	w21, w21, #1
	mov	x0, x19
	bl	_r_buf_size
	cmp	w21, w0
	b.lt	LBB0_5
LBB0_6:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_r_cons_printf
LBB0_7:
	cbz	x2, LBB0_9
; %bb.8:
	str	x2, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_cons_printf
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_R_BUF_SET,4,2                  ; @R_BUF_SET
l_.str.2:                               ; @.str.2
	.asciz	"%02x"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_consumeBuffer
.subsections_via_symbols
