	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuse_copy_in                   ## -- Begin function cuse_copy_in
	.p2align	4, 0x90
_cuse_copy_in:                          ## @cuse_copy_in
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	js	LBB0_2
## %bb.1:
	movq	_f_cuse@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_2
## %bb.3:
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_cuse_dev_get_entered
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r13
	movl	8(%rax), %r15d
	movl	%r15d, %edi
	callq	_cuse_cmd_str
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%r14d, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_DPRINTF
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_9
LBB0_2:
	movq	_CUSE_ERR_INVALID@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, -72(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movl	%ebx, -56(%rbp)
	movq	_f_cuse@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_CUSE_IOCTL_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	_CUSE_ERR_FAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_f_cuse,8,3                     ## @f_cuse
	.comm	_CUSE_ERR_INVALID,4,2           ## @CUSE_ERR_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cuse: copy_in(%p,%p,%d), cmd = %d = %s\n"

	.comm	_CUSE_IOCTL_READ_DATA,4,2       ## @CUSE_IOCTL_READ_DATA
L_.str.1:                               ## @.str.1
	.asciz	"cuse: copy_in() error = %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_CUSE_ERR_FAULT,4,2             ## @CUSE_ERR_FAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuse_copy_in                   ; -- Begin function cuse_copy_in
	.p2align	2
_cuse_copy_in:                          ; @cuse_copy_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	tbnz	w2, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x24, _f_cuse@GOTPAGE
Lloh1:
	ldr	x24, [x24, _f_cuse@GOTPAGEOFF]
	ldr	x8, [x24]
	tbnz	x8, #63, LBB0_5
; %bb.2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_cuse_dev_get_entered
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	ldr	w23, [x0, #8]
	mov	x0, x23
	bl	_cuse_cmd_str
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #16]
	stp	x21, x19, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DPRINTF
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x8, _CUSE_ERR_INVALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CUSE_ERR_INVALID@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	stp	x21, x20, [sp, #40]
	str	w19, [sp, #56]
	ldr	x0, [x24]
Lloh6:
	adrp	x8, _CUSE_IOCTL_READ_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CUSE_IOCTL_READ_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_ioctl
	cbz	w0, LBB0_7
; %bb.9:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldrsw	x1, [x8]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
Lloh14:
	adrp	x8, _CUSE_ERR_FAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CUSE_ERR_FAULT@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_f_cuse,8,3                     ; @f_cuse
	.comm	_CUSE_ERR_INVALID,4,2           ; @CUSE_ERR_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cuse: copy_in(%p,%p,%d), cmd = %d = %s\n"

	.comm	_CUSE_IOCTL_READ_DATA,4,2       ; @CUSE_IOCTL_READ_DATA
l_.str.1:                               ; @.str.1
	.asciz	"cuse: copy_in() error = %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_CUSE_ERR_FAULT,4,2             ; @CUSE_ERR_FAULT
.subsections_via_symbols
