	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function WriteRecord
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_WriteRecord:                           ## @WriteRecord
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	cmpl	$0, 48(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	movq	32(%rbx), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fseek
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_Util_strncpy
	movl	8(%rbx), %eax
	movl	12(%rbx), %ecx
	movd	%eax, %xmm0
	shrl	$8, %eax
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %ecx, %xmm0
	shrl	$8, %ecx
	pinsrd	$3, %ecx, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqa	%xmm0, -32(%rbp)
	movl	20(%rbx), %ecx
	leaq	-32(%rbp), %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_fwrite
	cmpl	$8, %eax
	jne	LBB0_1
## %bb.4:
	movq	_DEFAULT_BAUDRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	40(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	leaq	1(%rcx), %rax
	movq	%rax, (%rbx)
	movq	32(%rbx), %rax
	movq	(%rax,%rcx,8), %rsi
	movslq	8(%rbx), %rdx
	leaq	8(%rsi,%rdx), %rsi
	movq	%rsi, 8(%rax,%rcx,8)
	movl	(%rbx), %eax
	movl	20(%rbx), %ecx
	movl	%eax, 16(%rbx)
	movq	24(%rbx), %rdi
	movl	$1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fwrite
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	8(%rbx), %ecx
	jne	LBB0_6
## %bb.5:
	movq	$0, 8(%rbx)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data"

	.comm	_DEFAULT_BAUDRATE,4,2           ## @DEFAULT_BAUDRATE
	.no_dead_strip	_WriteRecord
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteRecord
_WriteRecord:                           ; @WriteRecord
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	ldr	x1, [x8, x9, lsl #3]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_fseek
	cbnz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_Util_strncpy
	ldp	w8, w9, [x19, #8]
	and	w10, w8, #0xff
	ubfx	w8, w8, #8, #8
	stp	w10, w8, [sp, #8]
	and	w8, w9, #0xff
	ubfx	w9, w9, #8, #8
	stp	w8, w9, [sp, #16]
	ldr	w3, [x19, #20]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #8
	bl	_fwrite
	cmp	w0, #8
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _DEFAULT_BAUDRATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEFAULT_BAUDRATE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19, #40]
	ldr	x10, [x19]
	str	w8, [x9, x10, lsl #2]
	add	x8, x10, #1
	str	x8, [x19]
	ldr	x9, [x19, #32]
	ldr	x10, [x9, x10, lsl #3]
	ldrsw	x2, [x19, #8]
	add	x10, x10, x2
	add	x10, x10, #8
	str	x10, [x9, x8, lsl #3]
	ldr	x8, [x19]
	str	w8, [x19, #16]
	ldr	x0, [x19, #24]
	ldr	w3, [x19, #20]
	mov	w1, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fwrite
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
	str	xzr, [x19, #8]
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data"

	.comm	_DEFAULT_BAUDRATE,4,2           ; @DEFAULT_BAUDRATE
	.no_dead_strip	_WriteRecord
.subsections_via_symbols
