	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_bmp_string             ## -- Begin function der_get_bmp_string
	.p2align	4, 0x90
_der_get_bmp_string:                    ## @der_get_bmp_string
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	testb	$1, %r15b
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	%r15, %rdi
	shrq	%rdi
	movq	%rdi, (%rdx)
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdi
	jbe	LBB0_6
## %bb.2:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ASN1_BAD_FORMAT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rcx, %r14
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rdx, %rcx
	jae	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%r12,%rcx,2), %edx
	movb	%dl, (%rax,%rcx)
	movq	(%rbx), %rdx
	movq	8(%rbx), %rax
	cmpb	$0, (%rax,%rcx)
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	-1(%rdx), %rsi
	cmpq	%rsi, %rcx
	je	LBB0_9
## %bb.12:
	movq	%rax, %rdi
	callq	_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	_ASN1_BAD_CHARACTER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_5
## %bb.16:
	movq	%r15, (%r14)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_BAD_FORMAT,4,2            ## @ASN1_BAD_FORMAT
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASN1_BAD_CHARACTER,4,2         ## @ASN1_BAD_CHARACTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_bmp_string             ; -- Begin function der_get_bmp_string
	.p2align	2
_der_get_bmp_string:                    ; @der_get_bmp_string
	.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
	tbnz	w21, #0, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x22, x0
	lsr	x0, x21, #1
	str	x0, [x2]
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ASN1_BAD_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASN1_BAD_FORMAT@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	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_6:
	mov	x20, x3
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_malloc
	str	x0, [x19, #8]
	ldr	x8, [x19]
	cbz	x0, LBB0_11
; %bb.7:
	cbz	x8, LBB0_13
; %bb.8:
	mov	x8, #0
	add	x9, x22, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	strb	w10, [x0, x8]
	ldp	x10, x0, [x19]
	ldrb	w11, [x0, x8]
	sub	x12, x10, #1
	cmp	w11, #0
	ccmp	x8, x12, #4, eq
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	add	x9, x9, #2
	cmp	x8, x10
	b.lo	LBB0_9
	b	LBB0_13
LBB0_11:
	cbz	x8, LBB0_13
; %bb.12:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	mov	w0, #0
	cbz	x20, LBB0_5
; %bb.14:
	str	x21, [x20]
	b	LBB0_5
LBB0_15:
	bl	_free
	stp	xzr, xzr, [x19]
Lloh9:
	adrp	x8, _ASN1_BAD_CHARACTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASN1_BAD_CHARACTER@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_BAD_FORMAT,4,2            ; @ASN1_BAD_FORMAT
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASN1_BAD_CHARACTER,4,2         ; @ASN1_BAD_CHARACTER
.subsections_via_symbols
