	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xmt                            ## -- Begin function xmt
	.p2align	4, 0x90
_xmt:                                   ## @xmt
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r13
	movq	16(%r13), %r14
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_JAN_1970@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, -64(%rbp)
	leaq	12(%r13), %r15
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	leaq	-48(%rbp), %r12
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_generate_pkt
	movq	%rax, %rbx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_sendpkt
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	8(%r13), %r14
	movl	$4, %edi
	movq	%rbx, %rsi
	callq	_min
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax
	movq	_JAN_1970@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_stoa
	movslq	%eax, %rsi
	movl	$2, %edi
	callq	_TRACE
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_dec_pending_ntp
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_msyslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmt: gettimeofday() failed: %m"

	.comm	_JAN_1970,8,3                   ## @JAN_1970
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xmt                            ; -- Begin function xmt
	.p2align	2
_xmt:                                   ; @xmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w20, [x0, #8]
	ldr	x22, [x0]
	ldr	x24, [x22, #16]
	add	x0, sp, #16
	mov	x1, #0
	bl	_gettimeofday
	cbnz	x0, LBB0_5
; %bb.1:
	add	x19, x22, #12
Lloh0:
	adrp	x23, _JAN_1970@GOTPAGE
Lloh1:
	ldr	x23, [x23, _JAN_1970@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [sp, #24]
	add	x8, x9, x8
	str	x8, [sp, #24]
	ldp	w3, w2, [x24, #4]
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_generate_pkt
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_sendpkt
	cbz	w0, LBB0_3
; %bb.2:
	add	x20, x22, #8
	mov	w0, #4
	mov	x1, x21
	bl	_min
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_memcpy
	ldr	x8, [sp, #24]
	ldr	x9, [x23]
	sub	x8, x8, x9
	str	x8, [x22]
	mov	x0, x19
	bl	_stoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	w0, #2
	bl	_TRACE
	b	LBB0_4
LBB0_3:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_dec_pending_ntp
LBB0_4:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
Lloh2:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmt: gettimeofday() failed: %m"

	.comm	_JAN_1970,8,3                   ; @JAN_1970
.subsections_via_symbols
