	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_time_buf        ## -- Begin function sldns_str2wire_time_buf
	.p2align	4, 0x90
_sldns_str2wire_time_buf:               ## @sldns_str2wire_time_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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$3, (%rdx)
	ja	LBB0_2
## %bb.1:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$14, %eax
	jne	LBB0_12
## %bb.3:
	leaq	-44(%rbp), %rcx
	leaq	-40(%rbp), %r8
	leaq	-36(%rbp), %r9
	leaq	-32(%rbp), %r10
	leaq	-28(%rbp), %rax
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	pushq	%rax
	pushq	%r10
	callq	_sscanf
	addq	$16, %rsp
	cmpl	$6, %eax
	jne	LBB0_12
## %bb.4:
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %eax
	leal	-1900(%rcx), %edx
	movl	%edx, -48(%rbp)
	leal	-1(%rax), %edx
	movl	%edx, -44(%rbp)
	cmpl	$1969, %ecx                     ## imm = 0x7B1
	jle	LBB0_5
## %bb.6:
	addl	$-13, %eax
	cmpl	$-13, %eax
	jbe	LBB0_5
## %bb.7:
	movl	-40(%rbp), %eax
	addl	$-32, %eax
	cmpl	$-32, %eax
	jbe	LBB0_5
## %bb.8:
	cmpl	$24, -36(%rbp)
	jae	LBB0_5
## %bb.9:
	cmpl	$60, -32(%rbp)
	jae	LBB0_5
## %bb.10:
	cmpl	$60, -28(%rbp)
	jb	LBB0_11
LBB0_5:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_TIME@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-56(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_13
## %bb.16:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	%ebx, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_RET_ERR
	jmp	LBB0_15
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_sldns_mktime_from_utc
LBB0_13:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sldns_write_uint32
	movq	$4, (%r15)
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"%4d%2d%2d%2d%2d%2d"

	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_TIME,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_TIME
	.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_time_buf        ; -- Begin function sldns_str2wire_time_buf
	.p2align	2
_sldns_str2wire_time_buf:               ; @sldns_str2wire_time_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x8, [x2]
	cmp	x8, #3
	b.hi	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_15
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x21
	bl	_strlen
	cmp	w0, #14
	b.ne	LBB0_11
; %bb.3:
	orr	x3, x22, #0x4
	add	x4, x22, #8
	add	x5, x22, #12
	add	x6, x22, #16
	add	x7, x22, #20
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #6
	b.ne	LBB0_11
; %bb.4:
	ldp	w9, w8, [sp, #8]
	sub	w10, w9, #1900
	sub	w11, w8, #1
	stp	w10, w11, [sp, #8]
	cmp	w9, #1969
	b.le	LBB0_10
; %bb.5:
	sub	w8, w8, #13
	cmn	w8, #13
	b.ls	LBB0_10
; %bb.6:
	ldr	w8, [sp, #16]
	sub	w8, w8, #32
	cmn	w8, #32
	b.ls	LBB0_10
; %bb.7:
	ldr	w8, [sp, #20]
	cmp	w8, #24
	b.hs	LBB0_10
; %bb.8:
	ldr	w8, [sp, #24]
	cmp	w8, #60
	b.hs	LBB0_10
; %bb.9:
	ldr	w8, [sp, #28]
	cmp	w8, #60
	b.lo	LBB0_13
LBB0_10:
Lloh4:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_TIME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_TIME@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp]
	ldrb	w9, [x8]
	cbz	w9, LBB0_14
; %bb.12:
Lloh6:
	adrp	x9, _LDNS_WIREPARSE_ERR_SYNTAX_TIME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LDNS_WIREPARSE_ERR_SYNTAX_TIME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	sub	w1, w8, w21
	bl	_RET_ERR
	b	LBB0_16
LBB0_13:
	add	x0, sp, #8
	bl	_sldns_mktime_from_utc
LBB0_14:
	mov	x1, x0
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sldns_write_uint32
	mov	w8, #4
	str	x8, [x19]
Lloh9:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%4d%2d%2d%2d%2d%2d"

	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_TIME,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_TIME
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
