	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_pubkey_decode
_x509_pubkey_decode:                    ## @x509_pubkey_decode
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_OBJ_obj2nid
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_EVP_PKEY_set_type
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	%rbx, (%r14)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_X509_F_X509_PUBKEY_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_X509_R_UNSUPPORTED_ALGORITHM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_X509_R_METHOD_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_X509_R_PUBLIC_KEY_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_X509_F_X509_PUBKEY_DECODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_X509err
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_PUBKEY_DECODE,4,2  ## @X509_F_X509_PUBKEY_DECODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_X509_R_UNSUPPORTED_ALGORITHM,4,2 ## @X509_R_UNSUPPORTED_ALGORITHM
	.comm	_X509_R_PUBLIC_KEY_DECODE_ERROR,4,2 ## @X509_R_PUBLIC_KEY_DECODE_ERROR
	.comm	_X509_R_METHOD_NOT_SUPPORTED,4,2 ## @X509_R_METHOD_NOT_SUPPORTED
	.no_dead_strip	_x509_pubkey_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_pubkey_decode
_x509_pubkey_decode:                    ; @x509_pubkey_decode
	.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	x21, x1
	mov	x20, x0
	bl	_EVP_PKEY_new
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_OBJ_obj2nid
	mov	x1, x0
	mov	x0, x19
	bl	_EVP_PKEY_set_type
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	blr	x8
	cbz	w0, LBB0_8
; %bb.4:
	str	x19, [x20]
	mov	w0, #1
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x8, _X509_F_X509_PUBKEY_DECODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_F_X509_PUBKEY_DECODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_X509err
	mov	w0, #-1
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _X509_R_UNSUPPORTED_ALGORITHM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X509_R_UNSUPPORTED_ALGORITHM@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _X509_R_METHOD_NOT_SUPPORTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X509_R_METHOD_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _X509_R_PUBLIC_KEY_DECODE_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _X509_R_PUBLIC_KEY_DECODE_ERROR@GOTPAGEOFF]
LBB0_9:
Lloh12:
	adrp	x9, _X509_F_X509_PUBKEY_DECODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _X509_F_X509_PUBKEY_DECODE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_X509err
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_PUBKEY_DECODE,4,2  ; @X509_F_X509_PUBKEY_DECODE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_X509_R_UNSUPPORTED_ALGORITHM,4,2 ; @X509_R_UNSUPPORTED_ALGORITHM
	.comm	_X509_R_PUBLIC_KEY_DECODE_ERROR,4,2 ; @X509_R_PUBLIC_KEY_DECODE_ERROR
	.comm	_X509_R_METHOD_NOT_SUPPORTED,4,2 ; @X509_R_METHOD_NOT_SUPPORTED
	.no_dead_strip	_x509_pubkey_decode
.subsections_via_symbols
