	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_int16_data_buf  ## -- Begin function sldns_str2wire_int16_data_buf
	.p2align	4, 0x90
_sldns_str2wire_int16_data_buf:         ## @sldns_str2wire_int16_data_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	(%r15), %rdx
	movslq	%eax, %rcx
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_2
## %bb.1:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jl	LBB0_4
## %bb.3:
	movq	_LDNS_WIREPARSE_ERR_LABEL_OVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	-32(%rbp), %rax
	cmpb	$32, (%rax)
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rax)
	leaq	1(%rax), %rax
	je	LBB0_7
## %bb.8:
	leaq	8(%r14), %rsi
	addq	$-2, %rdx
	movq	%rax, %rdi
	callq	_sldns_b64_pton
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sldns_write_uint16
	movl	%ebx, %eax
	addq	$2, %rax
	movq	%rax, (%r15)
	jmp	LBB0_11
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sldns_write_uint16
	movq	$2, (%r15)
LBB0_11:
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subl	%ebx, %eax
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
LBB0_9:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_B64@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_LABEL_OVERFLOW,4,2 ## @LDNS_WIREPARSE_ERR_LABEL_OVERFLOW
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_INT,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_INT
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_B64,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_B64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_int16_data_buf  ; -- Begin function sldns_str2wire_int16_data_buf
	.p2align	2
_sldns_str2wire_int16_data_buf:         ; @sldns_str2wire_int16_data_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	sxtw	x9, w0
	add	x9, x9, #2
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	cmp	w0, #16, lsl #12                ; =65536
	b.lt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _LDNS_WIREPARSE_ERR_LABEL_OVERFLOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_LABEL_OVERFLOW@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x0, [sp, #8]
	ldrb	w9, [x0]
	cmp	w9, #32
	b.ne	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x0, #1]!
	cmp	w9, #32
	b.eq	LBB0_6
; %bb.7:
	add	x1, x20, #8
	sub	x2, x8, #2
	bl	_sldns_b64_pton
	tbnz	w0, #31, LBB0_13
; %bb.8:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_sldns_write_uint16
	mov	w8, w21
	add	x8, x8, #2
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	bl	_sldns_write_uint16
	mov	w8, #2
LBB0_10:
	str	x8, [x19]
Lloh4:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
Lloh6:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w1, w0, w21
	mov	x0, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_RET_ERR
LBB0_13:
Lloh9:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_B64@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_B64@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_LABEL_OVERFLOW,4,2 ; @LDNS_WIREPARSE_ERR_LABEL_OVERFLOW
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_INT,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_INT
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_B64,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_B64
.subsections_via_symbols
