	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_sign_public_rsamd5        ## -- Begin function ldns_sign_public_rsamd5
	.p2align	4, 0x90
_ldns_sign_public_rsamd5:               ## @ldns_sign_public_rsamd5
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_LDNS_MAX_PACKETLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ldns_buffer_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ldns_buffer_begin
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ldns_buffer_position
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_MD5
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_NID_md5@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MD5_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_ldns_buffer_begin
	leaq	-44(%rbp), %r8
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%rax, %rcx
	movq	%r14, %r9
	callq	_RSA_sign
	movq	_LDNS_RDF_TYPE_B64@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %r14d
	movq	%r15, %rdi
	callq	_ldns_buffer_begin
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_ldns_rdf_new_frm_data
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ldns_buffer_free
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_ldns_buffer_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_PACKETLEN,4,2         ## @LDNS_MAX_PACKETLEN
	.comm	_NID_md5,4,2                    ## @NID_md5
	.comm	_MD5_DIGEST_LENGTH,4,2          ## @MD5_DIGEST_LENGTH
	.comm	_LDNS_RDF_TYPE_B64,4,2          ## @LDNS_RDF_TYPE_B64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_sign_public_rsamd5        ; -- Begin function ldns_sign_public_rsamd5
	.p2align	2
_ldns_sign_public_rsamd5:               ; @ldns_sign_public_rsamd5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _LDNS_MAX_PACKETLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_MAX_PACKETLEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ldns_buffer_new
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_ldns_buffer_begin
	mov	x22, x0
	mov	x0, x21
	bl	_ldns_buffer_position
	mov	x1, x0
	mov	x0, x22
	mov	x2, #0
	bl	_MD5
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, _NID_md5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_md5@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _MD5_DIGEST_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD5_DIGEST_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_ldns_buffer_begin
	mov	x3, x0
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x5, x20
	bl	_RSA_sign
Lloh9:
	adrp	x8, _LDNS_RDF_TYPE_B64@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_RDF_TYPE_B64@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	ldr	w21, [sp, #12]
	mov	x0, x19
	bl	_ldns_buffer_begin
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ldns_rdf_new_frm_data
	mov	x20, x0
	mov	x0, x19
	bl	_ldns_buffer_free
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_ldns_buffer_free
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_PACKETLEN,4,2         ; @LDNS_MAX_PACKETLEN
	.comm	_NID_md5,4,2                    ; @NID_md5
	.comm	_MD5_DIGEST_LENGTH,4,2          ; @MD5_DIGEST_LENGTH
	.comm	_LDNS_RDF_TYPE_B64,4,2          ; @LDNS_RDF_TYPE_B64
.subsections_via_symbols
