	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_item_pack                 ## -- Begin function ASN1_item_pack
	.p2align	4, 0x90
_ASN1_item_pack:                        ## @ASN1_item_pack
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_ASN1_STRING_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:
	movq	(%rbx), %rdi
	callq	_OPENSSL_free
	movq	$0, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_ASN1_item_i2d
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.5:
	testq	%r14, %r14
	je	LBB0_15
## %bb.6:
	cmpq	$0, (%r14)
	jne	LBB0_15
## %bb.7:
	movq	%rbx, (%r14)
	jmp	LBB0_15
LBB0_8:
	movq	_ASN1_R_ENCODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ASN1_F_ASN1_ITEM_PACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	jmp	LBB0_14
LBB0_10:
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_11:
	movq	_ASN1_F_ASN1_ITEM_PACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_ASN1err
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	cmpq	$0, (%r14)
	jne	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_ASN1_STRING_free
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_ASN1_ITEM_PACK,4,2      ## @ASN1_F_ASN1_ITEM_PACK
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_R_ENCODE_ERROR,4,2        ## @ASN1_R_ENCODE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_item_pack                 ; -- Begin function ASN1_item_pack
	.p2align	2
_ASN1_item_pack:                        ; @ASN1_item_pack
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x19, [x20]
	cbnz	x19, LBB0_3
LBB0_2:
	bl	_ASN1_STRING_new
	mov	x19, x0
	cbz	x0, LBB0_9
LBB0_3:
	ldr	x0, [x19]
	bl	_OPENSSL_free
	str	xzr, [x19]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_ASN1_item_i2d
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.5:
	cbz	x20, LBB0_15
; %bb.6:
	ldr	x8, [x20]
	cbnz	x8, LBB0_15
; %bb.7:
	str	x19, [x20]
	b	LBB0_15
LBB0_8:
Lloh0:
	adrp	x8, _ASN1_R_ENCODE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_R_ENCODE_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _ASN1_F_ASN1_ITEM_PACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASN1_F_ASN1_ITEM_PACK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ASN1err
	b	LBB0_15
LBB0_10:
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_11:
Lloh10:
	adrp	x9, _ASN1_F_ASN1_ITEM_PACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ASN1_F_ASN1_ITEM_PACK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ASN1err
	cbz	x20, LBB0_13
; %bb.12:
	ldr	x8, [x20]
	cbnz	x8, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_ASN1_STRING_free
LBB0_14:
	mov	x19, #0
LBB0_15:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_ASN1_ITEM_PACK,4,2      ; @ASN1_F_ASN1_ITEM_PACK
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_R_ENCODE_ERROR,4,2        ; @ASN1_R_ENCODE_ERROR
.subsections_via_symbols
