	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mydev_ioctl                    ## -- Begin function mydev_ioctl
	.p2align	4, 0x90
_mydev_ioctl:                           ## @mydev_ioctl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	(%r8), %r13
	callq	_dev2udev
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_printf
	cmpl	$128, %ebx
	jne	LBB0_2
## %bb.1:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	jmp	LBB0_3
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mydev_ioctl: dev_t=%lu, cmd=%lx, arg=%p, mode=%x procp=%p\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_str:                                  ## @str
	.asciz	"No such ioctl for me!"

L_str.3:                                ## @str.3
	.asciz	"you called mydev_ioctl CDEV_IOCTL1"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mydev_ioctl                    ; -- Begin function mydev_ioctl
	.p2align	2
_mydev_ioctl:                           ; @mydev_ioctl
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x4]
	bl	_dev2udev
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x22, [sp, #24]
	stp	x21, x20, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cmp	w21, #128
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_str.3@PAGE
Lloh3:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mydev_ioctl: dev_t=%lu, cmd=%lx, arg=%p, mode=%x procp=%p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_str:                                  ; @str
	.asciz	"No such ioctl for me!"

l_str.3:                                ; @str.3
	.asciz	"you called mydev_ioctl CDEV_IOCTL1"

.subsections_via_symbols
