	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_engine_load_devcrypto_int      ## -- Begin function engine_load_devcrypto_int
	.p2align	4, 0x90
_engine_load_devcrypto_int:             ## @engine_load_devcrypto_int
	.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
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_open
	movq	_cfd@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_ENGINE_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	_devcrypto_unload@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ENGINE_set_destroy_function
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	xorl	%eax, %eax
	callq	_prepare_cipher_methods
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ENGINE_set_id
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ENGINE_set_name
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movq	_devcrypto_ciphers@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ENGINE_set_ciphers
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_ENGINE_add
	movq	%rbx, %rdi
	callq	_ENGINE_free
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_clear_error                ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	callq	_ENGINE_free
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ENGINE_free                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/crypto"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_cfd,4,2                        ## @cfd
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Could not open /dev/crypto: %s\n"

	.comm	_devcrypto_unload,4,2           ## @devcrypto_unload
L_.str.2:                               ## @.str.2
	.asciz	"devcrypto"

L_.str.3:                               ## @.str.3
	.asciz	"/dev/crypto engine"

	.comm	_devcrypto_ciphers,4,2          ## @devcrypto_ciphers
	.comm	_devcrypto_dh,4,2               ## @devcrypto_dh
	.comm	_devcrypto_digests,4,2          ## @devcrypto_digests
	.comm	_devcrypto_dsa,4,2              ## @devcrypto_dsa
	.comm	_devcrypto_ec,4,2               ## @devcrypto_ec
	.comm	_devcrypto_rsa,4,2              ## @devcrypto_rsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_engine_load_devcrypto_int      ; -- Begin function engine_load_devcrypto_int
	.p2align	2
_engine_load_devcrypto_int:             ; @engine_load_devcrypto_int
	.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
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_open
Lloh5:
	adrp	x20, _cfd@GOTPAGE
Lloh6:
	ldr	x20, [x20, _cfd@GOTPAGEOFF]
	str	w0, [x20]
	tbnz	w0, #31, LBB0_8
; %bb.1:
	bl	_ENGINE_new
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
Lloh7:
	adrp	x8, _devcrypto_unload@GOTPAGE
Lloh8:
	ldr	x8, [x8, _devcrypto_unload@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ENGINE_set_destroy_function
	cbz	w0, LBB0_7
; %bb.3:
	bl	_prepare_cipher_methods
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ENGINE_set_id
	cbz	w0, LBB0_11
; %bb.4:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ENGINE_set_name
	cbz	w0, LBB0_11
; %bb.5:
Lloh14:
	adrp	x8, _devcrypto_ciphers@GOTPAGE
Lloh15:
	ldr	x8, [x8, _devcrypto_ciphers@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ENGINE_set_ciphers
	cbz	w0, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_ENGINE_add
	mov	x0, x19
	bl	_ENGINE_free
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_clear_error
LBB0_7:
	mov	x0, x19
	bl	_ENGINE_free
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close
LBB0_8:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
	bl	_strerror
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fprintf
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ENGINE_free
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/crypto"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_cfd,4,2                        ; @cfd
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Could not open /dev/crypto: %s\n"

	.comm	_devcrypto_unload,4,2           ; @devcrypto_unload
l_.str.2:                               ; @.str.2
	.asciz	"devcrypto"

l_.str.3:                               ; @.str.3
	.asciz	"/dev/crypto engine"

	.comm	_devcrypto_ciphers,4,2          ; @devcrypto_ciphers
	.comm	_devcrypto_dh,4,2               ; @devcrypto_dh
	.comm	_devcrypto_digests,4,2          ; @devcrypto_digests
	.comm	_devcrypto_dsa,4,2              ; @devcrypto_dsa
	.comm	_devcrypto_ec,4,2               ; @devcrypto_ec
	.comm	_devcrypto_rsa,4,2              ; @devcrypto_rsa
.subsections_via_symbols
