	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putchw
_putchw:                                ## @putchw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testb	%cl, %cl
	setne	%cl
	movb	(%r8), %al
	testb	%al, %al
	je	LBB0_2
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.11:
	leaq	1(%r13), %rsi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rdx), %ebx
	cmpb	$0, (%rsi)
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rsi
	cmpl	$1, %edx
	movl	%ebx, %edx
	ja	LBB0_12
	jmp	LBB0_3
LBB0_2:
	movl	%edx, %ebx
LBB0_3:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:
	shlb	$4, %cl
	orb	$32, %cl
	incl	%ebx
	movzbl	%cl, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	*%r14
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
## %bb.6:
	movb	(%r13), %al
LBB0_7:
	testb	%al, %al
	je	LBB0_10
## %bb.8:
	incq	%r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	*%r14
	movzbl	(%r13), %eax
	incq	%r13
	testb	%al, %al
	jne	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_putchw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putchw
_putchw:                                ; @putchw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x19, x1
	mov	x20, x0
	mov	w8, #48
	mov	w9, #32
	cmp	w3, #0
	csel	w22, w9, w8, eq
	ldrb	w8, [x4]
	cmp	w8, #0
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	x9, x2
	b	LBB0_4
LBB0_2:
	add	x10, x21, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w2, #1
	ldrb	w11, [x10], #1
	cmp	w11, #0
	ccmp	w2, #1, #0, ne
	mov	x2, x9
	b.hi	LBB0_3
LBB0_4:
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:
	add	w23, w9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	blr	x19
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_6
; %bb.7:
	ldrb	w8, [x21]
LBB0_8:
	cbz	w8, LBB0_11
; %bb.9:
	add	x21, x21, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w1, w8
	mov	x0, x20
	blr	x19
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_10
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_putchw
.subsections_via_symbols
