	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mydev_read                     ## -- Begin function mydev_read
	.p2align	4, 0x90
_mydev_read:                            ## @mydev_read
	.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
	callq	_printf
	movq	_len@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_buf@GOTPCREL(%rip), %rdi
	movq	_len@GOTPCREL(%rip), %rcx
	movl	$513, %edx                      ## imm = 0x201
	callq	_copystr
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mydev_read: dev_t=%lu, uio=%p, ioflag=%d\n"

	.comm	_len,8,3                        ## @len
	.comm	_buf,4,2                        ## @buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mydev_read                     ; -- Begin function mydev_read
	.p2align	2
_mydev_read:                            ; @mydev_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	bl	_dev2udev
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_printf
Lloh2:
	adrp	x8, _len@GOTPAGE
Lloh3:
	ldr	x8, [x8, _len@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh5:
	adrp	x0, _buf@GOTPAGE
Lloh6:
	ldr	x0, [x0, _buf@GOTPAGEOFF]
Lloh7:
	adrp	x3, _len@GOTPAGE
Lloh8:
	ldr	x3, [x3, _len@GOTPAGEOFF]
	mov	w2, #513
	bl	_copystr
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mydev_read: dev_t=%lu, uio=%p, ioflag=%d\n"

	.comm	_len,8,3                        ; @len
	.comm	_buf,4,2                        ; @buf
.subsections_via_symbols
