	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_PUBKEY_set                ## -- Begin function X509_PUBKEY_set
	.p2align	4, 0x90
_X509_PUBKEY_set:                       ## @X509_PUBKEY_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_X509_PUBKEY_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_X509_R_UNSUPPORTED_ALGORITHM@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	je	LBB0_8
## %bb.3:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:
	movq	(%rbx), %rdi
	callq	_X509_PUBKEY_free
	movq	%r14, (%rbx)
	movq	%r15, (%r14)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EVP_PKEY_up_ref                ## TAILCALL
LBB0_5:
	movq	_X509_R_METHOD_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_X509_R_PUBLIC_KEY_ENCODE_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_X509_F_X509_PUBKEY_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_X509err
LBB0_9:
	movq	%r14, %rdi
	callq	_X509_PUBKEY_free
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_PUBKEY_SET,4,2     ## @X509_F_X509_PUBKEY_SET
	.comm	_X509_R_PUBLIC_KEY_ENCODE_ERROR,4,2 ## @X509_R_PUBLIC_KEY_ENCODE_ERROR
	.comm	_X509_R_METHOD_NOT_SUPPORTED,4,2 ## @X509_R_METHOD_NOT_SUPPORTED
	.comm	_X509_R_UNSUPPORTED_ALGORITHM,4,2 ## @X509_R_UNSUPPORTED_ALGORITHM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_PUBKEY_set                ; -- Begin function X509_PUBKEY_set
	.p2align	2
_X509_PUBKEY_set:                       ; @X509_PUBKEY_set
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	bl	_X509_PUBKEY_new
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.2:
	cbz	x20, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_12
; %bb.6:
	ldr	x0, [x21]
	bl	_X509_PUBKEY_free
	str	x19, [x21]
	str	x20, [x19]
	mov	x0, x20
	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	_EVP_PKEY_up_ref
LBB0_7:
Lloh0:
	adrp	x8, _X509_R_UNSUPPORTED_ALGORITHM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_R_UNSUPPORTED_ALGORITHM@GOTPAGEOFF]
LBB0_8:
Lloh2:
	adrp	x9, _X509_F_X509_PUBKEY_SET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _X509_F_X509_PUBKEY_SET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_X509err
LBB0_9:
	mov	x0, x19
	bl	_X509_PUBKEY_free
LBB0_10:
	mov	w0, #0
	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_11:
Lloh5:
	adrp	x8, _X509_R_METHOD_NOT_SUPPORTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _X509_R_METHOD_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
Lloh7:
	adrp	x8, _X509_R_PUBLIC_KEY_ENCODE_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _X509_R_PUBLIC_KEY_ENCODE_ERROR@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_PUBKEY_SET,4,2     ; @X509_F_X509_PUBKEY_SET
	.comm	_X509_R_PUBLIC_KEY_ENCODE_ERROR,4,2 ; @X509_R_PUBLIC_KEY_ENCODE_ERROR
	.comm	_X509_R_METHOD_NOT_SUPPORTED,4,2 ; @X509_R_METHOD_NOT_SUPPORTED
	.comm	_X509_R_UNSUPPORTED_ALGORITHM,4,2 ; @X509_R_UNSUPPORTED_ALGORITHM
.subsections_via_symbols
