	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function test_timegm
LCPI0_0:
	.long	106                             ## 0x6a
	.long	9                               ## 0x9
	.long	1                               ## 0x1
	.long	10                              ## 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_timegm:                           ## @test_timegm
	.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
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [106,9,1,10]
	movaps	%xmm0, -64(%rbp)
	movl	$3, -48(%rbp)
	movq	%rbx, %rdi
	callq	__der_timegm
	movl	%eax, %r15d
	movl	$0, -56(%rbp)
	movq	%rbx, %rdi
	callq	__der_timegm
	movl	%eax, %r14d
	movl	$1159696980, %edi               ## imm = 0x451F9254
	movq	%rbx, %rsi
	callq	__der_gmtime
	movdqa	-64(%rbp), %xmm0
	psubd	LCPI0_0(%rip), %xmm0
	ptest	%xmm0, %xmm0
	jne	LBB0_3
## %bb.1:
	cmpl	$3, -48(%rbp)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, -40(%rbp)
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	xorl	%ecx, %ecx
	cmpl	$1159696980, %r15d              ## imm = 0x451F9254
	setne	%cl
	leal	1(%rcx), %eax
	cmpl	$-1, %r14d
	cmovel	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tmtime failes"

	.no_dead_strip	_test_timegm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function test_timegm
lCPI0_0:
	.long	106                             ; 0x6a
	.long	9                               ; 0x9
lCPI0_1:
	.long	10                              ; 0xa
	.long	3                               ; 0x3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_2:
	.long	106                             ; 0x6a
	.long	9                               ; 0x9
	.long	1                               ; 0x1
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_timegm:                           ; @test_timegm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w21, #37460
	movk	w21, #17695, lsl #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	mov	w22, #1
	str	w22, [sp, #24]
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [sp, #28]
	add	x0, sp, #16
	bl	__der_timegm
	mov	x19, x0
	str	wzr, [sp, #24]
	add	x0, sp, #16
	bl	__der_timegm
	mov	x20, x0
	add	x1, sp, #16
	mov	w0, #37460
	movk	w0, #17695, lsl #16
	bl	__der_gmtime
	ldr	q0, [sp, #16]
Lloh4:
	adrp	x8, lCPI0_2@PAGE
Lloh5:
	ldr	q1, [x8, lCPI0_2@PAGEOFF]
	cmeq.4s	v0, v0, v1
	mvn.16b	v0, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	umov.h	w10, v0[2]
	bfi	w8, w9, #1, #1
	and	w9, w10, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	and	w8, w8, #0xf
	ldr	w9, [sp, #32]
	ldr	x10, [sp, #40]
	cmp	w8, #0
	ccmp	w9, #3, #0, eq
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	cmp	w19, w21
	cset	w8, ne
	cinc	w9, w22, ne
	cmn	w20, #1
	csel	w0, w8, w9, eq
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tmtime failes"

	.no_dead_strip	_test_timegm
.subsections_via_symbols
