	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_device
_write_device:                          ## @write_device
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movb	%sil, -26(%rbp)
	leaq	-25(%rbp), %rdi
	movq	%rcx, %rsi
	callq	_memcpy
	movl	(%r14), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	incl	%ebx
	movl	%ebx, -64(%rbp)
	leaq	-26(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	(%r15), %rax
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	*(%rax)
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_device
_write_device:                          ; @write_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x0, #8]
	sturb	w1, [x29, #-34]
	sub	x22, x29, #34
	add	x0, x22, #1
	mov	x1, x3
	bl	_memcpy
	ldr	w8, [x20]
	str	w8, [sp, #32]
	add	w8, w19, #1
	str	w8, [sp, #8]
	stp	x22, xzr, [sp, #16]
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	blr	x8
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_device
.subsections_via_symbols
