	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rrinternal_get_ttl
_rrinternal_get_ttl:                    ## @rrinternal_get_ttl
	.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	%r9, %r14
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdx
	callq	_sldns_bget_token
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sldns_str2period
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	movzbl	(%rbx), %edi
	callq	_isdigit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	$1, (%r15)
	testq	%r14, %r14
	jne	LBB0_5
## %bb.4:
	movq	_LDNS_DEFAULT_TTL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_5:
	movq	%r14, (%r12)
LBB0_6:
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_sldns_buffer_position
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\t\n "

	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_TTL,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_TTL
	.comm	_LDNS_DEFAULT_TTL,8,3           ## @LDNS_DEFAULT_TTL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
	.no_dead_strip	_rrinternal_get_ttl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rrinternal_get_ttl
_rrinternal_get_ttl:                    ; @rrinternal_get_ttl
	.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, x5
	mov	x19, x4
	mov	x21, x3
	mov	x3, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_sldns_bget_token
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	x0, x22
	bl	_sldns_str2period
	str	x0, [x19]
	mov	x0, x22
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.2:
	ldrb	w0, [x22]
	bl	_isdigit
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
Lloh2:
	adrp	x8, _LDNS_DEFAULT_TTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_DEFAULT_TTL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x20, #0
	csel	x8, x8, x20, eq
	str	x8, [x19]
LBB0_4:
Lloh5:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
Lloh7:
	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
	add	sp, sp, #80
	ret
LBB0_5:
Lloh8:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_TTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_TTL@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	mov	x0, x23
	bl	_sldns_buffer_position
	mov	x1, x0
	mov	x0, x19
	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
	b	_RET_ERR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\t\n "

	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_TTL,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_TTL
	.comm	_LDNS_DEFAULT_TTL,8,3           ; @LDNS_DEFAULT_TTL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
	.no_dead_strip	_rrinternal_get_ttl
.subsections_via_symbols
