	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_pub_encode
_dsa_pub_encode:                        ## @dsa_pub_encode
	.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
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	8(%rsi), %rbx
	movq	_V_ASN1_UNDEF@GOTPCREL(%rip), %rax
	cmpq	$0, (%rsi)
	je	LBB0_10
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	callq	_ASN1_STRING_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_i2d_DSAparams
	movq	%rax, (%r15)
	testq	%rax, %rax
	jle	LBB0_15
## %bb.6:
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_BN_to_ASN1_INTEGER
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_i2d_ASN1_INTEGER
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_ASN1_INTEGER_free
	testl	%r13d, %r13d
	jle	LBB0_15
## %bb.13:
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%r13d, %r9d
	callq	_X509_PUBKEY_set0_param
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_17
	jmp	LBB0_16
LBB0_15:
	movq	_DSA_F_DSA_PUB_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DSAerr
LBB0_16:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_ASN1_STRING_free
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_DSA_F_DSA_PUB_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DSAerr
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_F_DSA_PUB_ENCODE,4,2       ## @DSA_F_DSA_PUB_ENCODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_V_ASN1_UNDEF,4,2               ## @V_ASN1_UNDEF
	.comm	_EVP_PKEY_DSA,4,2               ## @EVP_PKEY_DSA
	.no_dead_strip	_dsa_pub_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_pub_encode
_dsa_pub_encode:                        ; @dsa_pub_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	str	xzr, [sp, #8]
	ldp	x8, x21, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.4:
	bl	_ASN1_STRING_new
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.5:
	add	x1, x19, #8
	mov	x0, x21
	bl	_i2d_DSAparams
	str	x0, [x19]
	cmp	x0, #0
	b.le	LBB0_13
; %bb.6:
Lloh0:
	adrp	x8, _V_ASN1_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_SEQUENCE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	x19, #0
Lloh2:
	adrp	x8, _V_ASN1_UNDEF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V_ASN1_UNDEF@GOTPAGEOFF]
LBB0_8:
	ldr	w22, [x8]
	ldr	w0, [x21]
	mov	x1, #0
	bl	_BN_to_ASN1_INTEGER
	cbz	x0, LBB0_13
; %bb.9:
	mov	x23, x0
	add	x1, sp, #8
	bl	_i2d_ASN1_INTEGER
	mov	x21, x0
	mov	x0, x23
	bl	_ASN1_INTEGER_free
	cmp	w21, #0
	b.le	LBB0_13
; %bb.10:
Lloh4:
	adrp	x8, _EVP_PKEY_DSA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVP_PKEY_DSA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	cbz	x0, LBB0_14
; %bb.11:
	mov	x1, x0
	ldr	x4, [sp, #8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	mov	x5, x21
	bl	_X509_PUBKEY_set0_param
	cbz	x0, LBB0_14
; %bb.12:
	mov	w0, #1
	b	LBB0_15
LBB0_13:
Lloh7:
	adrp	x8, _DSA_F_DSA_PUB_ENCODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DSA_F_DSA_PUB_ENCODE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_DSAerr
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_ASN1_STRING_free
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_F_DSA_PUB_ENCODE,4,2       ; @DSA_F_DSA_PUB_ENCODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_V_ASN1_UNDEF,4,2               ; @V_ASN1_UNDEF
	.comm	_EVP_PKEY_DSA,4,2               ; @EVP_PKEY_DSA
	.no_dead_strip	_dsa_pub_encode
.subsections_via_symbols
