	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_nsec3_salt_buf  ## -- Begin function sldns_str2wire_nsec3_salt_buf
	.p2align	4, 0x90
_sldns_str2wire_nsec3_salt_buf:         ## @sldns_str2wire_nsec3_salt_buf
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_strlen
	movq	%rax, %r12
	cmpl	$1, %r12d
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	cmpb	$45, (%r13)
	jne	LBB0_3
	jmp	LBB0_5
LBB0_2:
	testb	$1, %r12b
	jne	LBB0_3
## %bb.4:
	cmpl	$513, %r12d                     ## imm = 0x201
	jl	LBB0_5
LBB0_3:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_HEX@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movslq	%r12d, %rax
	shrq	%rax
	cmpq	%rax, (%rbx)
	jbe	LBB0_6
## %bb.7:
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	cltq
	movq	%rax, (%r15)
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movzbl	1(%r13,%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movsbl	(%r13,%rbx), %edi
	callq	_sldns_hexdigit_to_int
	movl	%eax, %r14d
	shll	$4, %r14d
	movsbl	1(%r13,%rbx), %edi
	callq	_sldns_hexdigit_to_int
	addl	%r14d, %eax
	cltq
	movq	%rax, 8(%r15,%rbx,4)
	addq	$2, %rbx
	cmpl	%ebx, %r12d
	jg	LBB0_9
## %bb.12:
	movq	(%r15), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	incq	%rax
	movq	%rax, (%rbx)
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_HEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_HEX,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_HEX
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_nsec3_salt_buf  ; -- Begin function sldns_str2wire_nsec3_salt_buf
	.p2align	2
_sldns_str2wire_nsec3_salt_buf:         ; @sldns_str2wire_nsec3_salt_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #45
	b.ne	LBB0_5
; %bb.2:
	mov	w24, #0
	b	LBB0_6
LBB0_3:
	mov	x24, x0
	tbnz	w0, #0, LBB0_5
; %bb.4:
	cmp	w24, #513
	b.lt	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_HEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_HEX@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
	ldr	x8, [x19]
	sxtw	x9, w24
	cmp	x8, x9, lsr #1
	b.ls	LBB0_14
; %bb.7:
	cmp	w24, #0
	cinc	w8, w24, lt
	sbfx	x8, x8, #1, #31
	str	x8, [x20]
	cmp	w24, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
	mov	w25, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21, x22]
	bl	_isxdigit
	cbz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x21, x22
	ldrb	w0, [x26, #1]
	bl	_isxdigit
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	w0, [x21, x22]
	bl	_sldns_hexdigit_to_int
	mov	x23, x0
	ldrsb	w0, [x26, #1]
	bl	_sldns_hexdigit_to_int
	add	w8, w0, w23, lsl #4
	sxtw	x8, w8
	str	x8, [x20, x25]
	add	x22, x22, #2
	add	x25, x25, #8
	cmp	w24, w22
	b.gt	LBB0_9
; %bb.12:
	ldr	x8, [x20]
LBB0_13:
	add	x8, x8, #1
	str	x8, [x19]
Lloh2:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh4:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh6:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_HEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_HEX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_RET_ERR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_HEX,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_HEX
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
