	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMS_set_detached               ## -- Begin function CMS_set_detached
	.p2align	4, 0x90
_CMS_set_detached:                      ## @CMS_set_detached
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_CMS_get0_content
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	callq	_ASN1_OCTET_STRING_free
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASN1_OCTET_STRING_new
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	_ASN1_STRING_FLAG_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
LBB0_7:
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_CMS_F_CMS_SET_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_STRING_FLAG_CONT,4,2      ## @ASN1_STRING_FLAG_CONT
	.comm	_CMS_F_CMS_SET_DETACHED,4,2     ## @CMS_F_CMS_SET_DETACHED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMS_set_detached               ; -- Begin function CMS_set_detached
	.p2align	2
_CMS_set_detached:                      ; @CMS_set_detached
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_CMS_get0_content
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	cbz	w20, LBB0_3
; %bb.2:
	bl	_ASN1_OCTET_STRING_free
	str	xzr, [x19]
	b	LBB0_6
LBB0_3:
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_ASN1_OCTET_STRING_new
	str	x0, [x19]
	cbz	x0, LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _ASN1_STRING_FLAG_CONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_STRING_FLAG_CONT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh3:
	adrp	x8, _CMS_F_CMS_SET_DETACHED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMS_F_CMS_SET_DETACHED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_CMSerr
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_STRING_FLAG_CONT,4,2      ; @ASN1_STRING_FLAG_CONT
	.comm	_CMS_F_CMS_SET_DETACHED,4,2     ; @CMS_F_CMS_SET_DETACHED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
