	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_put_integer                ## -- Begin function der_put_integer
	.p2align	4, 0x90
_der_put_integer:                       ## @der_put_integer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdx), %eax
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	xorl	%r9d, %r9d
	movq	%rdi, %r8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, %rsi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movb	%dl, (%r8)
	decq	%r8
	leal	255(%rdx), %r10d
	testl	%eax, %eax
	cmovsl	%r10d, %eax
	sarl	$8, %eax
	incq	%r9
	cmpl	$510, %r10d                     ## imm = 0x1FE
	ja	LBB0_2
## %bb.5:
	testb	$-128, %dl
	je	LBB0_15
## %bb.6:
	cmpq	%r9, %rsi
	je	LBB0_3
## %bb.7:
	notq	%r9
	addq	%rdi, %r9
	movb	$0, (%r8)
	jmp	LBB0_14
LBB0_8:
	notl	%eax
	xorl	%r9d, %r9d
	movq	%rdi, %r8
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, %rsi
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %edx
	notb	%al
	movb	%al, (%r8)
	decq	%r8
	leal	255(%rdx), %r10d
	testl	%edx, %edx
	movl	%edx, %eax
	cmovsl	%r10d, %eax
	sarl	$8, %eax
	incq	%r9
	cmpl	$510, %r10d                     ## imm = 0x1FE
	ja	LBB0_9
## %bb.11:
	testb	$-128, %dl
	je	LBB0_15
## %bb.12:
	cmpq	%r9, %rsi
	jne	LBB0_13
LBB0_3:
	movq	_ASN1_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_13:
	notq	%r9
	addq	%rdi, %r9
	movb	$-1, (%r8)
LBB0_14:
	movq	%r9, %r8
LBB0_15:
	subq	%r8, %rdi
	movq	%rdi, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_OVERFLOW,4,2              ## @ASN1_OVERFLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_put_integer                ; -- Begin function der_put_integer
	.p2align	2
_der_put_integer:                       ; @der_put_integer
	.cfi_startproc
; %bb.0:
	ldr	w10, [x2]
	tbnz	w10, #31, LBB0_7
; %bb.1:
	mov	x9, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x1, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x10
	strb	w10, [x9], #-1
	sub	x1, x1, #1
	add	w11, w10, #255
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #8
	cmp	w11, #510
	b.hi	LBB0_2
; %bb.4:
	tbz	w8, #7, LBB0_13
; %bb.5:
	cbz	x1, LBB0_14
; %bb.6:
	strb	wzr, [x9], #-1
	b	LBB0_13
LBB0_7:
	mvn	w10, w10
	mov	x9, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x1, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x10
	mvn	w10, w10
	strb	w10, [x9], #-1
	sub	x1, x1, #1
	add	w11, w8, #255
	cmp	w8, #0
	csel	w10, w11, w8, lt
	asr	w10, w10, #8
	cmp	w11, #510
	b.hi	LBB0_8
; %bb.10:
	tbz	w8, #7, LBB0_13
; %bb.11:
	cbz	x1, LBB0_14
; %bb.12:
	mov	w8, #255
	strb	w8, [x9], #-1
LBB0_13:
	sub	x9, x0, x9
	str	x9, [x3]
	mov	w0, #0
	ret
LBB0_14:
Lloh0:
	adrp	x8, _ASN1_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_OVERFLOW,4,2              ; @ASN1_OVERFLOW
.subsections_via_symbols
