	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpci200_create_device
_tpci200_create_device:                 ## @tpci200_create_device
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r14d, (%rax)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_tpci200_release_device@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_IPACK_SPACE_COUNT@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %r9
	movq	_tpci200_space_interval@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	8(%r15), %rsi
	movq	_tpci200_space_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$8, %rsi
	xorl	%ebx, %ebx
	movslq	%r14d, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx,%rbx,4), %rcx
	imulq	%rax, %rcx
	addq	(%r9,%rbx,8), %rcx
	movq	%rcx, (%rsi)
	movl	(%rdi,%rbx,4), %ecx
	movl	%ecx, -8(%rsi)
	incq	%rbx
	movl	(%r8), %ecx
	addq	$16, %rsi
	cmpq	%rcx, %rbx
	jb	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_ipack_device_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_ipack_device_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_ipack_put_device
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tpci200_release_device,4,2     ## @tpci200_release_device
	.comm	_IPACK_SPACE_COUNT,4,2          ## @IPACK_SPACE_COUNT
	.comm	_tpci200_space_interval,8,3     ## @tpci200_space_interval
	.comm	_tpci200_space_size,8,3         ## @tpci200_space_size
	.no_dead_strip	_tpci200_create_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpci200_create_device
_tpci200_create_device:                 ; @tpci200_create_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	w20, [x0]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _tpci200_release_device@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tpci200_release_device@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh6:
	adrp	x8, _IPACK_SPACE_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPACK_SPACE_COUNT@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x21]
Lloh8:
	adrp	x11, _tpci200_space_interval@GOTPAGE
Lloh9:
	ldr	x11, [x11, _tpci200_space_interval@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	ldr	x13, [x19, #8]
Lloh11:
	adrp	x12, _tpci200_space_size@GOTPAGE
Lloh12:
	ldr	x12, [x12, _tpci200_space_size@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	add	x13, x13, #8
	sxtw	x14, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x10, x9, lsl #3]
	lsl	x16, x9, #2
	ldrsw	x17, [x11, x16]
	madd	x15, x17, x14, x15
	ldr	w16, [x12, x16]
	str	x15, [x13]
	stur	w16, [x13, #-8]
	add	x9, x9, #1
	ldr	w15, [x8]
	add	x13, x13, #16
	cmp	x9, x15
	b.lo	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_ipack_device_init
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_ipack_device_add
	mov	x20, x0
	tbz	w0, #31, LBB0_9
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_7:
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_ipack_put_device
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tpci200_release_device,4,2     ; @tpci200_release_device
	.comm	_IPACK_SPACE_COUNT,4,2          ; @IPACK_SPACE_COUNT
	.comm	_tpci200_space_interval,8,3     ; @tpci200_space_interval
	.comm	_tpci200_space_size,8,3         ; @tpci200_space_size
	.no_dead_strip	_tpci200_create_device
.subsections_via_symbols
