	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmodio_setup_subdevice
_cmodio_setup_subdevice:                ## @cmodio_setup_subdevice
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movq	24(%rdi), %r8
	movq	16(%rdi), %r9
	movl	%edx, %r10d
	movq	(%rdi), %r11
	movq	8(%rdi), %rax
	leal	(%rdx,%rdx,2), %edx
	shlq	$5, %rdx
	leaq	(%rax,%rdx), %rdi
	leaq	(%r11,%r10,4), %r14
	leaq	(%r10,%r10,4), %rbx
	movq	%rsi, (%r9,%rbx,8)
	movq	%rdi, 32(%r9,%rbx,8)
	movl	$3, 8(%r9,%rbx,8)
	movq	_cmodio_id@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdi
	leal	1(%rdi), %esi
	movl	%esi, (%r15)
	movq	%rdi, 24(%r9,%rbx,8)
	movl	%ecx, (%r11,%r10,4)
	movq	%r14, 16(%r9,%rbx,8)
	movl	$4, 12(%r9,%rbx,8)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%rdi, 24(%rax,%rdx)
	movq	(%r8), %rdi
	leaq	48(%rdi), %rbx
	movq	%rbx, 16(%rax,%rdx)
	movq	_CMODIO_MODULBUS_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	imull	%ebx, %ecx
	addq	56(%rdi), %rcx
	movq	%rcx, 8(%rax,%rdx)
	addq	%rbx, %rcx
	decq	%rcx
	movq	%rcx, (%rax,%rdx)
	movq	(%rsi), %rcx
	movq	%rcx, 56(%rax,%rdx)
	leaq	64(%rdi), %rcx
	movq	%rcx, 48(%rax,%rdx)
	movups	64(%rdi), %xmm0
	movups	%xmm0, 32(%rax,%rdx)
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 88(%rax,%rdx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rax,%rdx)
	movq	$0, 80(%rax,%rdx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmodio_id,4,2                  ## @cmodio_id
	.comm	_IORESOURCE_MEM,8,3             ## @IORESOURCE_MEM
	.comm	_CMODIO_MODULBUS_SIZE,4,2       ## @CMODIO_MODULBUS_SIZE
	.comm	_IORESOURCE_IRQ,8,3             ## @IORESOURCE_IRQ
	.no_dead_strip	_cmodio_setup_subdevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmodio_setup_subdevice
_cmodio_setup_subdevice:                ; @cmodio_setup_subdevice
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0, #16]
	mov	w10, w2
	add	w11, w2, w2, lsl #1
	ldp	x13, x12, [x0]
	add	x11, x12, x11, lsl #5
	lsl	x10, x10, #2
	add	x12, x13, x10
	mov	w14, #40
	umaddl	x9, w2, w14, x9
	str	x1, [x9]
	mov	w14, #3
Lloh0:
	adrp	x15, _cmodio_id@GOTPAGE
Lloh1:
	ldr	x15, [x15, _cmodio_id@GOTPAGEOFF]
	str	w14, [x9, #8]
	ldrsw	x14, [x15]
	add	w16, w14, #1
	str	w16, [x15]
	str	w3, [x13, x10]
	stp	x14, x11, [x9, #24]
	str	x12, [x9, #16]
	mov	w10, #4
Lloh2:
	adrp	x12, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x12, [x12, _IORESOURCE_MEM@GOTPAGEOFF]
	str	w10, [x9, #12]
	ldr	x9, [x12]
	ldr	x8, [x8]
	add	x10, x8, #48
	stp	x10, x9, [x11, #16]
	ldr	x9, [x8, #56]
Lloh4:
	adrp	x10, _CMODIO_MODULBUS_SIZE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CMODIO_MODULBUS_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	mul	w13, w10, w3
	add	x9, x9, x13
	add	x10, x10, x9
	sub	x10, x10, #1
	stp	x10, x9, [x11]
	ldr	q0, [x8, #64]!
	ldr	x9, [x12]
	stp	x8, x9, [x11, #48]
	str	q0, [x11, #32]
Lloh7:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	stp	xzr, x8, [x11, #80]
	stp	xzr, xzr, [x11, #64]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cmodio_id,4,2                  ; @cmodio_id
	.comm	_IORESOURCE_MEM,8,3             ; @IORESOURCE_MEM
	.comm	_CMODIO_MODULBUS_SIZE,4,2       ; @CMODIO_MODULBUS_SIZE
	.comm	_IORESOURCE_IRQ,8,3             ; @IORESOURCE_IRQ
	.no_dead_strip	_cmodio_setup_subdevice
.subsections_via_symbols
