	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function puthexnumber
_puthexnumber:                          ## @puthexnumber
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %edx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-37(%rbp), %rdi
	callq	_sprintf
	movb	-37(%rbp), %bl
	movsbl	%bl, %esi
	movq	%r14, %rdi
	callq	_put_wait_data
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_get_wait_data
	xorl	%r15d, %r15d
	cmpb	%bl, %al
	jne	LBB0_4
## %bb.5:
	movb	-36(%rbp), %bl
	movsbl	%bl, %esi
	movq	%r14, %rdi
	callq	_put_wait_data
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_get_wait_data
	movl	$1, %r15d
	cmpb	%bl, %al
	jne	LBB0_4
## %bb.8:
	movb	-35(%rbp), %bl
	movsbl	%bl, %esi
	movq	%r14, %rdi
	callq	_put_wait_data
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_get_wait_data
	movl	$2, %r15d
	cmpb	%bl, %al
	jne	LBB0_4
## %bb.11:
	movb	-34(%rbp), %r12b
	movsbl	%r12b, %esi
	movq	%r14, %rdi
	callq	_put_wait_data
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	callq	_get_wait_data
	movl	$3, %r15d
	xorl	%ebx, %ebx
	cmpb	%r12b, %al
	je	LBB0_14
LBB0_4:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %edx
	callq	_pr_notice
	addl	%r15d, %r15d
	xorl	$-2, %r15d
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_6:
	movl	$1, %ebx
	jmp	LBB0_2
LBB0_9:
	movl	$2, %ebx
	jmp	LBB0_2
LBB0_12:
	movl	$3, %ebx
LBB0_2:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_pr_notice
	addl	%ebx, %ebx
	notl	%ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04X"

L_.str.1:                               ## @.str.1
	.asciz	"cosa%d: puthexnumber failed to write byte %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"cosa%d: puthexhumber failed to read echo of byte %d\n"

	.no_dead_strip	_puthexnumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function puthexnumber
_puthexnumber:                          ; @puthexnumber
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #11
	bl	_sprintf
	ldrsb	w20, [sp, #11]
	mov	x0, x19
	mov	x1, x20
	bl	_put_wait_data
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.1:
	and	w20, w20, #0xff
	mov	x0, x19
	bl	_get_wait_data
	cmp	w20, w0, uxtb
	b.ne	LBB0_10
; %bb.2:
	ldrsb	w20, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_put_wait_data
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.3:
	and	w20, w20, #0xff
	mov	x0, x19
	bl	_get_wait_data
	cmp	w20, w0, uxtb
	b.ne	LBB0_12
; %bb.4:
	ldrsb	w20, [sp, #13]
	mov	x0, x19
	mov	x1, x20
	bl	_put_wait_data
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.5:
	and	w20, w20, #0xff
	mov	x0, x19
	bl	_get_wait_data
	cmp	w20, w0, uxtb
	b.ne	LBB0_14
; %bb.6:
	ldrsb	w20, [sp, #14]
	mov	x0, x19
	mov	x1, x20
	bl	_put_wait_data
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.7:
	and	w20, w20, #0xff
	mov	x0, x19
	bl	_get_wait_data
	cmp	w20, w0, uxtb
	b.ne	LBB0_17
; %bb.8:
	mov	w0, #0
	b	LBB0_19
LBB0_9:
	mov	w20, #0
	b	LBB0_16
LBB0_10:
	mov	w20, #0
	b	LBB0_18
LBB0_11:
	mov	w20, #1
	b	LBB0_16
LBB0_12:
	mov	w20, #1
	b	LBB0_18
LBB0_13:
	mov	w20, #2
	b	LBB0_16
LBB0_14:
	mov	w20, #2
	b	LBB0_18
LBB0_15:
	mov	w20, #3
LBB0_16:
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_pr_notice
	mov	w8, #-1
	eor	w0, w8, w20, lsl #1
	b	LBB0_19
LBB0_17:
	mov	w20, #3
LBB0_18:
	ldr	w1, [x19]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_pr_notice
	mov	w8, #-2
	sub	w0, w8, w20, lsl #1
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04X"

l_.str.1:                               ; @.str.1
	.asciz	"cosa%d: puthexnumber failed to write byte %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"cosa%d: puthexhumber failed to read echo of byte %d\n"

	.no_dead_strip	_puthexnumber
.subsections_via_symbols
