	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_mktime_from_utc           ## -- Begin function ldns_mktime_from_utc
	.p2align	4, 0x90
_ldns_mktime_from_utc:                  ## @ldns_mktime_from_utc
	.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	%rdi, %r15
	movl	(%rdi), %r14d
	imull	$365, %r14d, %ebx               ## imm = 0x16D
	addl	$1900, %r14d                    ## imm = 0x76C
	movl	$1970, %edi                     ## imm = 0x7B2
	movl	%r14d, %esi
	callq	_leap_days
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	addl	$-25550, %ebx                   ## imm = 0x9C32
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	_mdays@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %edx
	andl	$-4, %edx
	movd	%ebx, %xmm0
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	movdqu	32(%rcx,%rdi,8), %xmm4
	movdqu	48(%rcx,%rdi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_6
## %bb.7:
	testb	$1, %bl
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx,8), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_11:
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	callq	_is_leap_year
	cmpq	$1, %rax
	sbbl	$-1, %ebx
LBB0_13:
	addl	8(%r15), %ebx
	leal	(%rbx,%rbx,2), %eax
	shll	$3, %eax
	addl	12(%r15), %eax
	imull	$60, %eax, %eax
	addl	16(%r15), %eax
	imull	$60, %eax, %eax
	movl	20(%r15), %ecx
	addl	%ecx, %eax
	addl	$-86400, %eax                   ## imm = 0xFFFEAE80
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_mdays,8,3                      ## @mdays
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_mktime_from_utc           ; -- Begin function ldns_mktime_from_utc
	.p2align	2
_ldns_mktime_from_utc:                  ; @ldns_mktime_from_utc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w21, [x0]
	add	w20, w21, #1900
	mov	w22, #365
	mov	w0, #1970
	mov	x1, x20
	bl	_leap_days
	madd	w8, w21, w22, w0
	mov	w9, #-25550
	add	w21, w8, w9
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
Lloh0:
	adrp	x9, _mdays@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mdays@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	movi	d0, #0000000000000000
	mov.s	v0[0], w21
	and	x10, x8, #0xfffffff8
	movi.2d	v1, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w21, s0
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #3
	sub	x10, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #8
	add	w21, w21, w11
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_is_leap_year
	cmp	x0, #0
	cinc	w21, w21, ne
LBB0_10:
	ldp	w8, w9, [x19, #8]
	add	w8, w21, w8
	mov	w10, #24
	madd	w8, w8, w10, w9
	mov	w9, #60
	ldp	w10, w11, [x19, #16]
	madd	w8, w8, w9, w10
	sub	w8, w8, #1440
	madd	w0, w8, w9, w11
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mdays,8,3                      ; @mdays
.subsections_via_symbols
