	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_ilnp64_buf      ## -- Begin function sldns_str2wire_ilnp64_buf
	.p2align	4, 0x90
_sldns_str2wire_ilnp64_buf:             ## @sldns_str2wire_ilnp64_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$16, (%rdx)
	jae	LBB0_2
## %bb.1:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-68(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	-84(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	leaq	-76(%rbp), %r8
	leaq	-72(%rbp), %r9
	callq	_sscanf
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_ILNP64@GOTPCREL(%rip), %rbx
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.3:
	movl	-68(%rbp), %r13d
	movq	%r12, %rdi
	callq	_strlen
	cmpl	%eax, %r13d
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	-84(%rbp), %edi
	callq	_htons
	movl	%eax, -64(%rbp)
	movl	-80(%rbp), %edi
	callq	_htons
	movl	%eax, -60(%rbp)
	movl	-76(%rbp), %edi
	callq	_htons
	movl	%eax, -56(%rbp)
	movl	-72(%rbp), %edi
	callq	_htons
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_memmove
	movq	$16, (%r15)
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%4x:%4x:%4x:%4x%n"

L_.str.1:                               ## @.str.1
	.asciz	"+-"

	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_ILNP64,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_ILNP64
	.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_ilnp64_buf      ; -- Begin function sldns_str2wire_ilnp64_buf
	.p2align	2
_sldns_str2wire_ilnp64_buf:             ; @sldns_str2wire_ilnp64_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x2]
	cmp	x8, #16
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	add	x5, sp, #8
	add	x6, sp, #4
	bl	_sscanf
	cmp	w0, #4
	b.ne	LBB0_5
; %bb.3:
	ldr	w22, [sp, #4]
	mov	x0, x21
	bl	_strlen
	cmp	w22, w0
	b.ne	LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strpbrk
	cbz	x0, LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_ILNP64@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_ILNP64@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	w0, [sp, #20]
	bl	_htons
	str	w0, [sp, #24]
	ldr	w0, [sp, #16]
	bl	_htons
	str	w0, [sp, #28]
	ldr	w0, [sp, #12]
	bl	_htons
	str	w0, [sp, #32]
	ldr	w0, [sp, #8]
	bl	_htons
	str	w0, [sp, #36]
	mov	w21, #16
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #16
	bl	_memmove
	str	x21, [x19]
Lloh14:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%4x:%4x:%4x:%4x%n"

l_.str.1:                               ; @.str.1
	.asciz	"+-"

	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_ILNP64,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_ILNP64
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
