	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Binary_Write              ## -- Begin function HPDF_Binary_Write
	.p2align	4, 0x90
_HPDF_Binary_Write:                     ## @HPDF_Binary_Write
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	%r15d, %edi
	movl	$60, %esi
	callq	_HPDF_Stream_WriteChar
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_5
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_HPDF_Encrypt_Reset
LBB0_4:
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	movl	%r15d, %edi
	movq	%r14, %rcx
	callq	_HPDF_Stream_WriteBinary
	cmpl	(%r12), %eax
	jne	LBB0_5
## %bb.7:
	movl	%r15d, %edi
	movl	$62, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Stream_WriteChar          ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Stream_WriteStr           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<>"

	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Binary_Write              ; -- Begin function HPDF_Binary_Write
	.p2align	2
_HPDF_Binary_Write:                     ; @HPDF_Binary_Write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	mov	x0, x19
	mov	w1, #60
	bl	_HPDF_Stream_WriteChar
Lloh0:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_HPDF_Encrypt_Reset
LBB0_4:
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_HPDF_Stream_WriteBinary
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #62
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_HPDF_Stream_WriteChar
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_HPDF_Stream_WriteStr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<>"

	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
.subsections_via_symbols
