	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trans_buildframe
_trans_buildframe:                      ## @trans_buildframe
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%edx, %edx
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r14), %eax
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_isowbuf_freebytes
	cmpl	%r12d, %eax
	jl	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_isowbuf_startwrite
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_DEBUG_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_gig_dbg
	movq	_DEBUG_STREAM_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_dump_bytes
	movl	(%r14), %ebx
	incl	%r12d
	movq	_BAS_OUTBUFSIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %edi
	incq	%r15
	callq	_bitrev8
	movl	%eax, %ecx
	movq	8(%r14), %rax
	movslq	%ebx, %rdx
	incl	%ebx
	movb	%cl, (%rax,%rdx)
	movl	%ebx, %eax
	cltd
	idivl	(%r13)
	decl	%r12d
	movl	%edx, %ebx
	cmpl	$1, %r12d
	jg	LBB0_7
## %bb.8:
	movl	%ebx, (%r14)
	movb	%cl, 16(%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isowbuf_donewrite              ## TAILCALL
LBB0_5:
	movq	_DEBUG_ISO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_gig_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ISO,4,2                  ## @DEBUG_ISO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't put %d bytes"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_DEBUG_STREAM,4,2               ## @DEBUG_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"put %d bytes"

	.comm	_DEBUG_STREAM_DUMP,4,2          ## @DEBUG_STREAM_DUMP
L_.str.2:                               ## @.str.2
	.asciz	"snd data"

	.comm	_BAS_OUTBUFSIZE,4,2             ## @BAS_OUTBUFSIZE
	.no_dead_strip	_trans_buildframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trans_buildframe
_trans_buildframe:                      ; @trans_buildframe
	.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, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w2, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_isowbuf_freebytes
	cmp	w0, w21
	b.lt	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_isowbuf_startwrite
	cbz	w0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _DEBUG_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_gig_dbg
Lloh5:
	adrp	x8, _DEBUG_STREAM_DUMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG_STREAM_DUMP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dump_bytes
	ldr	w22, [x19]
	add	w21, w21, #1
Lloh10:
	adrp	x23, _BAS_OUTBUFSIZE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _BAS_OUTBUFSIZE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x20], #1
	bl	_bitrev8
	ldr	x8, [x19, #8]
	strb	w0, [x8, w22, sxtw]
	add	w8, w22, #1
	ldr	w9, [x23]
	sdiv	w10, w8, w9
	msub	w22, w10, w9, w8
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_5
; %bb.6:
	str	w22, [x19]
	strb	w0, [x19, #16]
	mov	x0, x19
	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
	b	_isowbuf_donewrite
LBB0_7:
Lloh12:
	adrp	x8, _DEBUG_ISO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEBUG_ISO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_gig_dbg
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ISO,4,2                  ; @DEBUG_ISO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't put %d bytes"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_DEBUG_STREAM,4,2               ; @DEBUG_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"put %d bytes"

	.comm	_DEBUG_STREAM_DUMP,4,2          ; @DEBUG_STREAM_DUMP
l_.str.2:                               ; @.str.2
	.asciz	"snd data"

	.comm	_BAS_OUTBUFSIZE,4,2             ; @BAS_OUTBUFSIZE
	.no_dead_strip	_trans_buildframe
.subsections_via_symbols
