	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_gmtime_adj             ## -- Begin function OPENSSL_gmtime_adj
	.p2align	4, 0x90
_OPENSSL_gmtime_adj:                    ## @OPENSSL_gmtime_adj
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-40(%rbp), %rcx
	leaq	-32(%rbp), %r8
	callq	_julian_adj
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-40(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	callq	_julian_to_date
	movl	-28(%rbp), %eax
	leal	-10000(%rax), %ecx
	cmpl	$-8100, %ecx                    ## imm = 0xE05C
	jb	LBB0_3
## %bb.2:
	addl	$-1900, %eax                    ## imm = 0xF894
	movl	%eax, (%r14)
	movl	-24(%rbp), %eax
	decl	%eax
	movl	%eax, 4(%r14)
	movl	-20(%rbp), %eax
	movl	%eax, 8(%r14)
	movslq	-32(%rbp), %rax
	imulq	$-1851608123, %rax, %rcx        ## imm = 0x91A2B3C5
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$11, %ecx
	addl	%edx, %ecx
	movl	%ecx, 12(%r14)
	imulq	$-2004318071, %rax, %rcx        ## imm = 0x88888889
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$5, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	$-2004318071, %rcx, %rdx        ## imm = 0x88888889
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	imull	$60, %edx, %edx
	imull	$60, %ecx, %esi
	subl	%edx, %ecx
	movl	%ecx, 16(%r14)
	subl	%esi, %eax
	movl	%eax, 20(%r14)
	movl	$1, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_gmtime_adj             ; -- Begin function OPENSSL_gmtime_adj
	.p2align	2
_OPENSSL_gmtime_adj:                    ; @OPENSSL_gmtime_adj
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x3, sp, #8
	sub	x4, x29, #20
	bl	_julian_adj
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	bl	_julian_to_date
	ldr	w8, [sp, #24]
	mov	w9, #-10000
	mov	w10, #-8100
	add	w9, w8, w9
	cmp	w9, w10
	b.hs	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	sub	w8, w8, #1900
	ldr	w9, [sp, #20]
	sub	w9, w9, #1
	stp	w8, w9, [x19]
	ldr	w8, [sp, #16]
	ldursw	x9, [x29, #-20]
	mov	x10, #-19515
	movk	x10, #37282, lsl #16
	mul	x10, x9, x10
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #11
	add	w10, w11, w10, lsr #31
	stp	w8, w10, [x19, #8]
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	smull	x10, w9, w8
	lsr	x10, x10, #32
	add	w10, w10, w9
	asr	w11, w10, #5
	add	w10, w11, w10, lsr #31
	smull	x8, w10, w8
	lsr	x8, x8, #32
	add	w8, w8, w10
	asr	w11, w8, #5
	add	w8, w11, w8, lsr #31
	mov	w11, #60
	msub	w8, w8, w11, w10
	msub	w9, w10, w11, w9
	stp	w8, w9, [x19, #16]
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
