	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_i2b
_do_i2b:                                ## @do_i2b
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	movq	%rsi, %rdi
	callq	_EVP_PKEY_id
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_EVP_PKEY_get0_DSA
	leaq	-52(%rbp), %rdx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_check_bitlen_dsa
	movl	%eax, %ebx
	movq	_MS_KEYALG_DSS_SIGN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.3:
	movq	%r13, %rdi
	callq	_EVP_PKEY_get0_RSA
	leaq	-52(%rbp), %rdx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_check_bitlen_rsa
	movl	%eax, %ebx
	movq	_MS_KEYALG_RSA_KEYX@GOTPCREL(%rip), %rax
LBB0_4:
	movl	$-1, %r12d
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.5:
	movl	(%rax), %eax
	movq	_MS_KEYALG_DSS_SIGN@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	(%rcx), %eax
	sete	%sil
	movl	%ebx, %edi
	movl	%r15d, %edx
	callq	_blob_length
	movl	%eax, %r14d
	addl	$16, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	(%rax), %rcx
	movq	%rcx, %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.7:
	movl	%r14d, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_10:
	leaq	1(%rax), %rcx
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.12:
	movq	_MS_PRIVATEKEYBLOB@GOTPCREL(%rip), %rdx
	jmp	LBB0_13
LBB0_11:
	movq	_MS_PUBLICKEYBLOB@GOTPCREL(%rip), %rdx
LBB0_13:
	movb	(%rdx), %dl
	movq	%rcx, -48(%rbp)
	movb	%dl, (%rax)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	$2, (%rax)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	$0, (%rax)
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	$0, (%rax)
	leaq	-48(%rbp), %rdi
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_write_ledword
	movl	-52(%rbp), %esi
	leaq	-48(%rbp), %rdi
	callq	_write_ledword
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_write_ledword
	movq	_MS_KEYALG_DSS_SIGN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_EVP_PKEY_get0_DSA
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_write_dsa
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_17
	jmp	LBB0_18
LBB0_15:
	movq	%r13, %rdi
	callq	_EVP_PKEY_get0_RSA
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_write_rsa
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_18
LBB0_17:
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, (%rcx)
LBB0_18:
	movl	%r14d, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_PEM_F_DO_I2B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_DSA,4,2               ## @EVP_PKEY_DSA
	.comm	_MS_KEYALG_DSS_SIGN,4,2         ## @MS_KEYALG_DSS_SIGN
	.comm	_EVP_PKEY_RSA,4,2               ## @EVP_PKEY_RSA
	.comm	_MS_KEYALG_RSA_KEYX,4,2         ## @MS_KEYALG_RSA_KEYX
	.comm	_PEM_F_DO_I2B,4,2               ## @PEM_F_DO_I2B
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_MS_PUBLICKEYBLOB,4,2           ## @MS_PUBLICKEYBLOB
	.comm	_MS_PRIVATEKEYBLOB,4,2          ## @MS_PRIVATEKEYBLOB
	.no_dead_strip	_do_i2b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_i2b
_do_i2b:                                ; @do_i2b
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #4]
	mov	x0, x1
	bl	_EVP_PKEY_id
Lloh0:
	adrp	x8, _EVP_PKEY_DSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_DSA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_EVP_PKEY_get0_DSA
	add	x2, sp, #4
	mov	x1, x20
	bl	_check_bitlen_dsa
	mov	x23, x0
Lloh3:
	adrp	x8, _MS_KEYALG_DSS_SIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_KEYALG_DSS_SIGN@GOTPAGEOFF]
	cbnz	w23, LBB0_4
	b	LBB0_10
LBB0_2:
Lloh5:
	adrp	x8, _EVP_PKEY_RSA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVP_PKEY_RSA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x21
	bl	_EVP_PKEY_get0_RSA
	add	x2, sp, #4
	mov	x1, x20
	bl	_check_bitlen_rsa
	mov	x23, x0
Lloh8:
	adrp	x8, _MS_KEYALG_RSA_KEYX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MS_KEYALG_RSA_KEYX@GOTPAGEOFF]
	cbz	w23, LBB0_10
LBB0_4:
	ldr	w24, [x8]
Lloh10:
	adrp	x26, _MS_KEYALG_DSS_SIGN@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MS_KEYALG_DSS_SIGN@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w24, w8
	cset	w1, eq
	mov	x0, x23
	mov	x2, x20
	bl	_blob_length
	add	w22, w0, #16
	cbz	x19, LBB0_13
; %bb.5:
	ldr	x25, [x19]
	mov	x0, x25
	cbnz	x25, LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_14
; %bb.7:
	str	x0, [x19]
LBB0_8:
Lloh12:
	adrp	x8, _MS_PRIVATEKEYBLOB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MS_PRIVATEKEYBLOB@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MS_PUBLICKEYBLOB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MS_PUBLICKEYBLOB@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	add	x9, x0, #1
	str	x9, [sp, #8]
	strb	w8, [x0]
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	mov	w9, #2
	strb	w9, [x8]
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	wzr, [x8]
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	strb	wzr, [x8]
	add	x0, sp, #8
	mov	x1, x24
	bl	_write_ledword
	ldr	w1, [sp, #4]
	add	x0, sp, #8
	bl	_write_ledword
	add	x0, sp, #8
	mov	x1, x23
	bl	_write_ledword
	ldr	w8, [x26]
	mov	x0, x21
	cmp	w24, w8
	b.ne	LBB0_11
; %bb.9:
	bl	_EVP_PKEY_get0_DSA
	mov	x1, x0
	add	x0, sp, #8
	mov	x2, x20
	bl	_write_dsa
	cbnz	x25, LBB0_12
	b	LBB0_13
LBB0_10:
	mov	w22, #-1
	b	LBB0_13
LBB0_11:
	bl	_EVP_PKEY_get0_RSA
	mov	x1, x0
	add	x0, sp, #8
	mov	x2, x20
	bl	_write_rsa
	cbz	x25, LBB0_13
LBB0_12:
	ldr	x8, [x19]
	add	x8, x8, w22, sxtw
	str	x8, [x19]
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh16:
	adrp	x8, _PEM_F_DO_I2B@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PEM_F_DO_I2B@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	w22, #-1
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_DSA,4,2               ; @EVP_PKEY_DSA
	.comm	_MS_KEYALG_DSS_SIGN,4,2         ; @MS_KEYALG_DSS_SIGN
	.comm	_EVP_PKEY_RSA,4,2               ; @EVP_PKEY_RSA
	.comm	_MS_KEYALG_RSA_KEYX,4,2         ; @MS_KEYALG_RSA_KEYX
	.comm	_PEM_F_DO_I2B,4,2               ; @PEM_F_DO_I2B
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_MS_PUBLICKEYBLOB,4,2           ; @MS_PUBLICKEYBLOB
	.comm	_MS_PRIVATEKEYBLOB,4,2          ; @MS_PRIVATEKEYBLOB
	.no_dead_strip	_do_i2b
.subsections_via_symbols
