	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mydev_write                    ## -- Begin function mydev_write
	.p2align	4, 0x90
_mydev_write:                           ## @mydev_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_dev2udev
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_buf@GOTPCREL(%rip), %rsi
	movq	_len@GOTPCREL(%rip), %rcx
	movl	$512, %edx                      ## imm = 0x200
	callq	_copyinstr
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mydev_write: dev_t=%lu, uio=%p, ioflag=%d\n"

	.comm	_buf,4,2                        ## @buf
	.comm	_len,4,2                        ## @len
L_str:                                  ## @str
	.asciz	"Write to \"cdev\" failed."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mydev_write                    ; -- Begin function mydev_write
	.p2align	2
_mydev_write:                           ; @mydev_write
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_dev2udev
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x19, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, _buf@GOTPAGE
Lloh3:
	ldr	x1, [x1, _buf@GOTPAGEOFF]
Lloh4:
	adrp	x3, _len@GOTPAGE
Lloh5:
	ldr	x3, [x3, _len@GOTPAGEOFF]
	mov	w2, #512
	bl	_copyinstr
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mydev_write: dev_t=%lu, uio=%p, ioflag=%d\n"

	.comm	_buf,4,2                        ; @buf
	.comm	_len,4,2                        ; @len
l_str:                                  ; @str
	.asciz	"Write to \"cdev\" failed."

.subsections_via_symbols
