	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_rrsig2rawsig_buffer
_ldns_rrsig2rawsig_buffer:              ## @ldns_rrsig2rawsig_buffer
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_ldns_rr_rdf
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ldns_rr_rdf
	movq	%rax, %rdi
	callq	_ldns_rdf2native_int8
	addl	$-130, %eax
	cmpl	$12, %eax
	ja	LBB0_11
## %bb.5:
	movl	$7, %ecx
	btl	%eax, %ecx
	jb	LBB0_8
## %bb.6:
	movl	$4616, %ecx                     ## imm = 0x1208
	btl	%eax, %ecx
	jae	LBB0_11
## %bb.7:
	movq	_LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_LDNS_STATUS_CRYPTO_NO_RRSIG@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_ldns_rr_rdf
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_ldns_rr_rdf
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ldns_rdf2buffer_wire
	movl	%eax, %ecx
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	je	LBB0_13
## %bb.10:
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_LDNS_STATUS_CRYPTO_UNKNOWN_ALGO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_CRYPTO_NO_RRSIG,4,2 ## @LDNS_STATUS_CRYPTO_NO_RRSIG
	.comm	_LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG,4,2 ## @LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_MEM_ERR,4,2        ## @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL,4,2 ## @LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL
	.comm	_LDNS_STATUS_CRYPTO_UNKNOWN_ALGO,4,2 ## @LDNS_STATUS_CRYPTO_UNKNOWN_ALGO
	.no_dead_strip	_ldns_rrsig2rawsig_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_rrsig2rawsig_buffer
_ldns_rrsig2rawsig_buffer:              ; @ldns_rrsig2rawsig_buffer
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #1
	bl	_ldns_rr_rdf
	cbz	x0, LBB0_9
; %bb.2:
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_ldns_rr_rdf
	bl	_ldns_rdf2native_int8
	sub	w8, w0, #130
	cmp	w8, #12
	b.hi	LBB0_12
; %bb.3:
	lsl	w9, w21, w8
	tst	w9, #0x7
	b.ne	LBB0_7
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #4616
	tst	w8, w9
	b.eq	LBB0_12
; %bb.5:
Lloh0:
	adrp	x8, _LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh2:
	adrp	x8, _LDNS_STATUS_CRYPTO_NO_RRSIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_STATUS_CRYPTO_NO_RRSIG@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	w1, #8
	bl	_ldns_rr_rdf
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #8
	bl	_ldns_rr_rdf
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rdf2buffer_wire
Lloh4:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w0, w8, w9, eq
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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_12:
Lloh12:
	adrp	x8, _LDNS_STATUS_CRYPTO_UNKNOWN_ALGO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_STATUS_CRYPTO_UNKNOWN_ALGO@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_CRYPTO_NO_RRSIG,4,2 ; @LDNS_STATUS_CRYPTO_NO_RRSIG
	.comm	_LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG,4,2 ; @LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_MEM_ERR,4,2        ; @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL,4,2 ; @LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL
	.comm	_LDNS_STATUS_CRYPTO_UNKNOWN_ALGO,4,2 ; @LDNS_STATUS_CRYPTO_UNKNOWN_ALGO
	.no_dead_strip	_ldns_rrsig2rawsig_buffer
.subsections_via_symbols
