	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_small
_write_small:                           ## @write_small
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -272(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edx, -260(%rbp)                ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	leaq	-256(%rbp), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_paddr_nz
	movzbl	(%r14,%r13), %ecx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_sprintf
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_puts_e7000debug
	incl	%r12d
	cmpl	-260(%rbp), %r12d               ## 4-byte Folded Reload
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-272(%rbp), %rax                ## 8-byte Reload
	leal	(%r12,%rax), %edi
	movslq	%r12d, %r13
	testb	$3, %dil
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	3(%r13), %r15
	cmpl	-260(%rbp), %r15d               ## 4-byte Folded Reload
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_paddr_nz
	movzbl	(%r14,%r13), %ecx
	movzbl	1(%r14,%r13), %r8d
	movzbl	2(%r14,%r13), %r9d
	movzbl	(%r14,%r15), %edx
	movl	%edx, (%rsp)
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	movl	%r15d, %r12d
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_expect_prompt
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	-260(%rbp), %eax                ## 4-byte Reload
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m %s %x%02x%02x%02x;l\r"

L_.str.1:                               ## @.str.1
	.asciz	"m %s %x\r"

	.no_dead_strip	_write_small
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_small
_write_small:                           ; @write_small
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	w24, #0
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_paddr_nz
	mov	x2, x0
	ldrb	w3, [x20, w24, sxtw]
	add	x0, sp, #32
	mov	x1, x23
	bl	_sprintf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #32
	bl	_puts_e7000debug
	add	w24, w24, #1
	cmp	w24, w19
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w24, w21
	tst	w0, #0x3
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x26, w24
	add	x25, x26, #3
	cmp	w25, w19
	b.ge	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_paddr_nz
	mov	x2, x0
	add	x8, x20, x26
	ldrb	w3, [x8]
	ldrb	w9, [x8, #1]
	ldrb	w8, [x8, #2]
	ldrb	w10, [x20, x25]
	stp	x8, x10, [sp, #8]
	add	x0, sp, #32
	str	x9, [sp]
	mov	x1, x22
	bl	_sprintf
	mov	x24, x25
	b	LBB0_3
LBB0_7:
	bl	_expect_prompt
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m %s %x%02x%02x%02x;l\r"

l_.str.1:                               ; @.str.1
	.asciz	"m %s %x\r"

	.no_dead_strip	_write_small
.subsections_via_symbols
