	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tifm_ms_write_data
_tifm_ms_write_data:                    ## @tifm_ms_write_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	(%rdi), %r9d
	testq	%r9, %r9
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	cmpl	$3, %r9d
	jg	LBB0_8
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.4:
	movb	4(%r15), %al
	leal	(,%r9,8), %ecx
	movl	%r12d, %r8d
	decq	%r8
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %ebx
	incq	%r13
	leal	(%r9,%rdi), %edx
	movzbl	(%rsi,%rdi), %eax
	shll	%cl, %eax
	orb	%bl, %al
	movb	%al, 4(%r15)
	leal	(%r9,%rdi), %ebx
	incl	%ebx
	movl	%ebx, (%r15)
	cmpl	$2, %edx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	$8, %ecx
	cmpl	%edi, %r8d
	jne	LBB0_5
LBB0_7:
	addl	%r13d, %r9d
	subl	%r13d, %r12d
LBB0_8:
	cmpl	$4, %r9d
	jne	LBB0_11
## %bb.9:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_TIFM_MS_STAT_FUL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SOCK_MS_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	testl	%ebx, %eax
	je	LBB0_29
## %bb.10:
	movl	(%r15), %r9d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
LBB0_11:
	testl	%r9d, %r9d
	jne	LBB0_28
## %bb.12:
	testl	%r12d, %r12d
	je	LBB0_28
LBB0_13:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_TIFM_MS_STAT_FUL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SOCK_MS_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	testl	%ebx, %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_18
## %bb.14:
	cmpl	$4, %r12d
	jb	LBB0_18
## %bb.15:
	movq	_SOCK_MS_SYSTEM@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	_TIFM_MS_SYS_FDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	%r13d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax), %edi
	movq	_SOCK_MS_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	___raw_writel
	addl	$-4, %r12d
	addl	$4, %r13d
	movq	_TIFM_MS_STAT_FUL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SOCK_MS_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	testl	%ebx, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$3, %r12d
	ja	LBB0_16
LBB0_18:
	cmpl	$1, %r12d
	je	LBB0_22
## %bb.19:
	cmpl	$2, %r12d
	je	LBB0_23
## %bb.20:
	cmpl	$3, %r12d
	jne	LBB0_21
## %bb.24:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	incl	%eax
	jmp	LBB0_25
LBB0_29:
	movq	_TIFM_MS_SYS_FDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SOCK_MS_SYSTEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	orl	%eax, %ebx
	movq	_SOCK_MS_SYSTEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movzbl	4(%r15), %edi
	movq	_SOCK_MS_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movl	$0, (%r15)
	movb	$0, 4(%r15)
	testl	%r12d, %r12d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_28
LBB0_22:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_23:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
LBB0_25:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	incl	%eax
	movl	%eax, (%rdx)
LBB0_26:
	movl	%r13d, %ecx
	movb	(%rsi,%rcx), %cl
	orb	%cl, 4(%rdx)
	incl	%eax
	movl	%eax, (%rdx)
	jmp	LBB0_27
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_27:
	addl	%r13d, %eax
	movl	%eax, %r13d
LBB0_28:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFM_MS_STAT_FUL,4,2           ## @TIFM_MS_STAT_FUL
	.comm	_SOCK_MS_STATUS,8,3             ## @SOCK_MS_STATUS
	.comm	_TIFM_MS_SYS_FDIR,4,2           ## @TIFM_MS_SYS_FDIR
	.comm	_SOCK_MS_SYSTEM,8,3             ## @SOCK_MS_SYSTEM
	.comm	_SOCK_MS_DATA,8,3               ## @SOCK_MS_DATA
	.no_dead_strip	_tifm_ms_write_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tifm_ms_write_data
_tifm_ms_write_data:                    ; @tifm_ms_write_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #3
	ccmp	w22, #0, #4, le
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
	cmp	w8, #4
	b.eq	LBB0_8
	b	LBB0_10
LBB0_3:
	mov	w20, #0
	b	LBB0_10
LBB0_4:
	mov	x20, #0
	ldrb	w9, [x19, #4]
	lsl	w10, w8, #3
	mov	w11, w22
	sub	x11, x11, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x20
	add	x20, x20, #1
	add	w13, w8, w12
	ldrb	w14, [x21, x12]
	lsl	w14, w14, w10
	orr	w9, w9, w14
	strb	w9, [x19, #4]
	add	w14, w13, #1
	str	w14, [x19]
	cmp	w13, #2
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w10, #8
	cmp	w11, w12
	b.ne	LBB0_5
LBB0_7:
	add	w8, w8, w20
	sub	w22, w22, w20
	cmp	w8, #4
	b.ne	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _TIFM_MS_STAT_FUL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFM_MS_STAT_FUL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _SOCK_MS_STATUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_MS_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	tst	w0, w24
	b.eq	LBB0_19
; %bb.9:
	ldr	w8, [x19]
LBB0_10:
	cbnz	w8, LBB0_26
; %bb.11:
	cbz	w22, LBB0_26
LBB0_12:
Lloh6:
	adrp	x25, _TIFM_MS_STAT_FUL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _TIFM_MS_STAT_FUL@GOTPAGEOFF]
	ldr	w26, [x25]
	ldr	x8, [x23]
Lloh8:
	adrp	x24, _SOCK_MS_STATUS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SOCK_MS_STATUS@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, w26
	cmp	w8, #0
	ccmp	w22, #4, #0, eq
	b.lo	LBB0_15
; %bb.13:
Lloh10:
	adrp	x27, _SOCK_MS_SYSTEM@GOTPAGE
Lloh11:
	ldr	x27, [x27, _SOCK_MS_SYSTEM@GOTPAGEOFF]
Lloh12:
	adrp	x28, _SOCK_MS_DATA@GOTPAGE
Lloh13:
	ldr	x28, [x28, _SOCK_MS_DATA@GOTPAGEOFF]
	mov	x26, x24
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
Lloh14:
	adrp	x8, _TIFM_MS_SYS_FDIR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TIFM_MS_SYS_FDIR@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	ldr	x8, [x23]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w24
	ldr	x8, [x23]
	ldr	x9, [x27]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x21, w20, uxtw]
	ldr	x8, [x23]
	ldr	x9, [x28]
	add	x1, x9, x8
	bl	___raw_writel
	sub	w22, w22, #4
	add	w20, w20, #4
	ldr	w24, [x25]
	ldr	x8, [x23]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, w24
	cmp	w8, #0
	ccmp	w22, #3, #0, eq
	b.hi	LBB0_14
LBB0_15:
	cmp	w22, #1
	b.eq	LBB0_20
; %bb.16:
	cmp	w22, #2
	b.eq	LBB0_21
; %bb.17:
	cmp	w22, #3
	b.ne	LBB0_24
; %bb.18:
	ldr	w8, [x19]
	add	w8, w8, #1
	b	LBB0_22
LBB0_19:
Lloh17:
	adrp	x8, _TIFM_MS_SYS_FDIR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TIFM_MS_SYS_FDIR@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	ldr	x8, [x23]
Lloh20:
	adrp	x25, _SOCK_MS_SYSTEM@GOTPAGE
Lloh21:
	ldr	x25, [x25, _SOCK_MS_SYSTEM@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w24
	ldr	x8, [x23]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
	ldrb	w0, [x19, #4]
	ldr	x8, [x23]
Lloh22:
	adrp	x9, _SOCK_MS_DATA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SOCK_MS_DATA@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	str	wzr, [x19]
	strb	wzr, [x19, #4]
	cbnz	w22, LBB0_12
	b	LBB0_26
LBB0_20:
	ldr	w8, [x19]
	b	LBB0_23
LBB0_21:
	ldr	w8, [x19]
LBB0_22:
	add	w8, w8, #1
	str	w8, [x19]
LBB0_23:
	ldrb	w9, [x21, w20, uxtw]
	ldrb	w10, [x19, #4]
	orr	w9, w10, w9
	strb	w9, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_25
LBB0_24:
	ldr	w8, [x19]
LBB0_25:
	add	w20, w8, w20
LBB0_26:
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFM_MS_STAT_FUL,4,2           ; @TIFM_MS_STAT_FUL
	.comm	_SOCK_MS_STATUS,8,3             ; @SOCK_MS_STATUS
	.comm	_TIFM_MS_SYS_FDIR,4,2           ; @TIFM_MS_SYS_FDIR
	.comm	_SOCK_MS_SYSTEM,8,3             ; @SOCK_MS_SYSTEM
	.comm	_SOCK_MS_DATA,8,3               ; @SOCK_MS_DATA
	.no_dead_strip	_tifm_ms_write_data
.subsections_via_symbols
