	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _do_data_output
__do_data_output:                       ## @_do_data_output
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rsi), %r12d
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movslq	(%rsi), %rax
	leaq	(%rdi,%rax,4), %r14
	cmpl	$1, %r12d
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdx
	cmoveq	%rcx, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$1, %eax
	cmoveq	%rcx, %rbx
	cmpq	$0, 24(%rsi)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
LBB0_4:
	cmpq	$0, 8(%r15)
	jle	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_fwrite
	cmpl	%eax, %r12d
	jne	LBB0_19
LBB0_7:
	cmpq	$0, 8(%r15)
	jle	LBB0_8
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	addl	(%r15), %r12d
	movl	16(%r15), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_verbose_dump_buffer
	jmp	LBB0_21
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_21
LBB0_3:
	cmpl	$0, 20(%r15)
	je	LBB0_4
## %bb.9:
	cmpq	$0, 8(%r15)
	jle	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	testq	%rax, %rax
	setns	%al
	js	LBB0_17
## %bb.12:
	cmpl	$2, %r12d
	jb	LBB0_17
## %bb.13:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_stdout@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_fputc
	movq	_EOF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %edi
	movl	-4(%r14,%rbx,4), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	testq	%rax, %rax
	setns	%al
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	1(%rbx), %rcx
	cmpq	%r12, %rbx
	movq	%rcx, %rbx
	jb	LBB0_14
LBB0_17:
	testb	%al, %al
	movq	_stdout@GOTPCREL(%rip), %rax
	je	LBB0_19
## %bb.18:
	movl	(%rax), %esi
	movl	$10, %edi
	callq	_fputc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_21
LBB0_8:
	xorl	%ebx, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bytes"

L_.str.1:                               ## @.str.1
	.asciz	"byte"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Binary output of %d %s\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"ASCII output of %d %s\n"

	.comm	_EOF,8,3                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"%02hhx"

L_.str.5:                               ## @.str.5
	.asciz	"Error writing to stdout, errno=%d\n"

	.comm	_errno,4,2                      ## @errno
L_.str.6:                               ## @.str.6
	.asciz	"%d command %s and %d data %s read from SPI device\n"

	.no_dead_strip	__do_data_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _do_data_output
__do_data_output:                       ; @_do_data_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w21, [x1, #4]
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldrsw	x27, [x1]
	add	x22, x0, x27, lsl #2
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w21, #1
	csel	x24, x9, x8, eq
	cmp	w27, #1
	csel	x25, x9, x8, eq
	ldr	x8, [x1, #24]
Lloh4:
	adrp	x23, _stderr@GOTPAGE
Lloh5:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x8, LBB0_9
LBB0_2:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x23]
	str	x24, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_4:
Lloh8:
	adrp	x8, _stdout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w1, #1
	mov	x2, x21
	bl	_fwrite
	cmp	w21, w0
	b.ne	LBB0_20
LBB0_5:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x23]
	ldr	w2, [x20]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	x21, x8, [sp, #8]
	str	x25, [sp]
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	w8, [x20]
	add	w1, w8, w21
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_verbose_dump_buffer
LBB0_7:
	mov	w0, #0
	b	LBB0_21
LBB0_8:
	mov	w0, #-1
	b	LBB0_21
LBB0_9:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_2
; %bb.10:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	w0, [x23]
	str	x24, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_12:
Lloh15:
	adrp	x26, _stdout@GOTPAGE
Lloh16:
	ldr	x26, [x26, _stdout@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	w2, [x22]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	lsr	x8, x0, #63
	eor	w8, w8, #0x1
	tbnz	x0, #63, LBB0_18
; %bb.13:
	cmp	w21, #2
	b.lo	LBB0_18
; %bb.14:
	add	x27, x19, x27, lsl #2
	mov	w28, #1
Lloh19:
	adrp	x24, _EOF@GOTPAGE
Lloh20:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
Lloh21:
	adrp	x22, l_.str.4@PAGE
Lloh22:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	w0, #32
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x26]
	ldr	w2, [x27, x28, lsl #2]
	mov	x1, x22
	bl	_fprintf
	lsr	x8, x0, #63
	eor	w8, w8, #0x1
	tbnz	x0, #63, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x28, #1
	cmp	x28, x21
	b.lo	LBB0_15
LBB0_18:
	cbz	w8, LBB0_20
; %bb.19:
	ldr	w1, [x26]
	mov	w0, #10
	bl	_fputc
Lloh23:
	adrp	x8, _EOF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_20:
	ldr	w0, [x23]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bytes"

l_.str.1:                               ; @.str.1
	.asciz	"byte"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Binary output of %d %s\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"ASCII output of %d %s\n"

	.comm	_EOF,8,3                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"%02hhx"

l_.str.5:                               ; @.str.5
	.asciz	"Error writing to stdout, errno=%d\n"

	.comm	_errno,4,2                      ; @errno
l_.str.6:                               ; @.str.6
	.asciz	"%d command %s and %d data %s read from SPI device\n"

	.no_dead_strip	__do_data_output
.subsections_via_symbols
