	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sys_t_write
_sys_t_write:                           ## @sys_t_write
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	8(%rsi), %r13
	addl	(%rsi), %ebx
	movl	4(%rsi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movb	$0, -42(%rbp)
	movq	_DATA_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, -52(%rbp)
	testq	%r13, %r13
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r13, %rdi
	callq	_sys_t_need_clock_sync
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_sys_t_clock_sync
	testq	%rax, %rax
	jle	LBB0_20
LBB0_3:
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.4:
	movq	_MIPI_SYST_OPT_LEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, -52(%rbp)
LBB0_5:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_sys_t_need_ts
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MIPI_SYST_OPT_TS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, -52(%rbp)
LBB0_7:
	movq	_STP_PACKET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_STP_PACKET_TIMESTAMPED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movq	%r14, %rbx
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	$4, %r9d
	callq	*(%rbx)
	testq	%rax, %rax
	jle	LBB0_20
## %bb.8:
	movq	8(%r13), %r8
	movq	_UUID_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_stm_data_write
	testq	%rax, %rax
	jle	LBB0_20
## %bb.9:
	cmpq	$0, (%r13)
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_11
## %bb.10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	movq	_STP_PACKET_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-88(%rbp), %rax
	movq	%rax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	movl	$2, %r9d
	callq	*(%rdi)
	testq	%rax, %rax
	jle	LBB0_20
LBB0_11:
	movq	_MIPI_SYST_OPT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_ktime_get_real_ns
	movb	%al, -41(%rbp)
	leaq	-41(%rbp), %r8
	movl	$1, %r9d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_stm_data_write
	testq	%rax, %rax
	jle	LBB0_20
LBB0_13:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_stm_data_write
	movq	%rax, %r12
	testq	%rax, %rax
	jle	LBB0_21
## %bb.14:
	movq	_STP_PACKET_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-42(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*(%rbx)
	jmp	LBB0_21
LBB0_20:
	movq	%rax, %r12
	jmp	LBB0_21
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_21:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_HEADER,4,2                ## @DATA_HEADER
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_MIPI_SYST_OPT_LEN,4,2          ## @MIPI_SYST_OPT_LEN
	.comm	_MIPI_SYST_OPT_TS,4,2           ## @MIPI_SYST_OPT_TS
	.comm	_STP_PACKET_DATA,4,2            ## @STP_PACKET_DATA
	.comm	_STP_PACKET_TIMESTAMPED,4,2     ## @STP_PACKET_TIMESTAMPED
	.comm	_UUID_SIZE,8,3                  ## @UUID_SIZE
	.comm	_STP_PACKET_FLAG,4,2            ## @STP_PACKET_FLAG
	.no_dead_strip	_sys_t_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sys_t_write
_sys_t_write:                           ; @sys_t_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x24, [x1, #8]
	ldp	w8, w20, [x1]
	strb	wzr, [sp, #31]
Lloh0:
	adrp	x9, _DATA_HEADER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DATA_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x9]
	str	w26, [sp, #24]
	cbz	x24, LBB0_16
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x19, x0
	add	w21, w8, w2
	mov	x0, x24
	bl	_sys_t_need_clock_sync
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sys_t_clock_sync
	cmp	x0, #1
	b.lt	LBB0_15
LBB0_3:
	ldr	x8, [x24]
	cbz	x8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _MIPI_SYST_OPT_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_SYST_OPT_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w26, w26, w8
	str	w26, [sp, #24]
LBB0_5:
	mov	x0, x24
	bl	_sys_t_need_ts
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _MIPI_SYST_OPT_TS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIPI_SYST_OPT_TS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w26, w8
	str	w8, [sp, #24]
LBB0_7:
	ldr	x8, [x19]
Lloh9:
	adrp	x26, _STP_PACKET_DATA@GOTPAGE
Lloh10:
	ldr	x26, [x26, _STP_PACKET_DATA@GOTPAGEOFF]
	ldr	w3, [x26]
Lloh11:
	adrp	x9, _STP_PACKET_TIMESTAMPED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _STP_PACKET_TIMESTAMPED@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x9]
	add	x6, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w5, #4
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.8:
	ldr	x4, [x24, #8]
Lloh14:
	adrp	x8, _UUID_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UUID_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x5, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_stm_data_write
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.9:
	ldr	x8, [x24]
	cbz	x8, LBB0_11
; %bb.10:
	str	x22, [sp, #16]
	ldr	x8, [x19]
	ldr	w3, [x26]
	add	x6, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w4, #0
	mov	w5, #2
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_15
LBB0_11:
	ldr	w8, [sp, #24]
Lloh17:
	adrp	x9, _MIPI_SYST_OPT_TS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MIPI_SYST_OPT_TS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	bl	_ktime_get_real_ns
	strb	w0, [sp, #15]
	add	x4, sp, #15
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	w5, #1
	bl	_stm_data_write
	cmp	x0, #1
	b.lt	LBB0_15
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	x4, x23
	mov	x5, x22
	bl	_stm_data_write
	mov	x25, x0
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.14:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _STP_PACKET_FLAG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _STP_PACKET_FLAG@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x9]
	add	x6, sp, #31
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w4, #0
	mov	w5, #0
	blr	x8
	b	LBB0_17
LBB0_15:
	mov	x25, x0
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	neg	x25, x8
LBB0_17:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_HEADER,4,2                ; @DATA_HEADER
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_MIPI_SYST_OPT_LEN,4,2          ; @MIPI_SYST_OPT_LEN
	.comm	_MIPI_SYST_OPT_TS,4,2           ; @MIPI_SYST_OPT_TS
	.comm	_STP_PACKET_DATA,4,2            ; @STP_PACKET_DATA
	.comm	_STP_PACKET_TIMESTAMPED,4,2     ; @STP_PACKET_TIMESTAMPED
	.comm	_UUID_SIZE,8,3                  ; @UUID_SIZE
	.comm	_STP_PACKET_FLAG,4,2            ; @STP_PACKET_FLAG
	.no_dead_strip	_sys_t_write
.subsections_via_symbols
