	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sz_push_full_pulse
_sz_push_full_pulse:                    ## @sz_push_full_pulse
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_rawir@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_DEFINE_IR_RAW_EVENT
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	leaq	32(%rbx), %rdi
	movups	32(%rbx), %xmm0
	movups	%xmm0, 16(%rbx)
	callq	_do_gettimeofday
	movq	32(%rbx), %rax
	subq	16(%rbx), %rax
	movl	$0, (%r15)
	cmpq	$16, %rax
	jl	LBB0_4
## %bb.3:
	movq	_IR_MAX_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	movq	8(%rbx), %rax
	jmp	LBB0_6
LBB0_4:
	imull	$1000000, %eax, %edi            ## imm = 0xF4240
	addl	40(%rbx), %edi
	movl	24(%rbx), %eax
	addl	8(%rbx), %eax
	subl	%eax, %edi
	movl	%edi, 4(%r15)
	callq	_US_TO_NS
	movq	_IR_MAX_DURATION@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_5:
	movl	%eax, 4(%r15)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_sz_push
	movl	$0, (%rbx)
	xorl	%eax, %eax
LBB0_6:
	movl	$1, (%r15)
	movzbl	%r14b, %ecx
	movq	_SZ_RESOLUTION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%edx, %ecx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	addl	%ecx, %esi
	movl	%esi, 4(%r15)
	movslq	%esi, %rdi
	addq	%rdi, %rax
	movq	%rax, 8(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_US_TO_NS
	movq	_IR_MAX_DURATION@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, 4(%r15)
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sz_push                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rawir,8,2                      ## @rawir
	.comm	_IR_MAX_DURATION,4,2            ## @IR_MAX_DURATION
	.comm	_SZ_RESOLUTION,4,2              ## @SZ_RESOLUTION
	.no_dead_strip	_sz_push_full_pulse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sz_push_full_pulse
_sz_push_full_pulse:                    ; @sz_push_full_pulse
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _rawir@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rawir@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_DEFINE_IR_RAW_EVENT
	ldr	w8, [x19]
Lloh2:
	adrp	x22, _IR_MAX_DURATION@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IR_MAX_DURATION@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	add	x0, x19, #32
	ldr	q0, [x19, #32]
	str	q0, [x19, #16]
	bl	_do_gettimeofday
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #16]
	sub	x8, x8, x9
	str	wzr, [x21]
	cmp	x8, #16
	b.lt	LBB0_4
; %bb.2:
	ldr	w8, [x22]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #8]
	b	LBB0_6
LBB0_4:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	ldr	w10, [x19, #40]
	madd	w8, w8, w9, w10
	ldr	w9, [x19, #24]
	ldr	w10, [x19, #8]
	add	w9, w9, w10
	sub	w0, w8, w9
	str	w0, [x21, #4]
	bl	_US_TO_NS
	ldr	w8, [x22]
	and	w8, w8, w0
LBB0_5:
	str	w8, [x21, #4]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_sz_push
	mov	x8, #0
	str	wzr, [x19]
LBB0_6:
	mov	w9, #1
Lloh4:
	adrp	x10, _SZ_RESOLUTION@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SZ_RESOLUTION@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	mul	w11, w10, w20
	cmp	w10, #0
	cinc	w10, w10, lt
	add	w0, w11, w10, asr #1
	stp	w9, w0, [x21]
	add	x8, x8, w0, sxtw
	str	x8, [x19, #8]
	bl	_US_TO_NS
	ldr	w8, [x22]
	and	w8, w8, w0
	str	w8, [x21, #4]
	ldr	x1, [x21]
	mov	x0, x19
	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
	b	_sz_push
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_rawir,8,2                      ; @rawir
	.comm	_IR_MAX_DURATION,4,2            ; @IR_MAX_DURATION
	.comm	_SZ_RESOLUTION,4,2              ; @SZ_RESOLUTION
	.no_dead_strip	_sz_push_full_pulse
.subsections_via_symbols
