	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genwqe_dev_alloc
_genwqe_dev_alloc:                      ## @genwqe_dev_alloc
	.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
	movq	_GENWQE_CARD_NO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_genwqe_devices@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movl	%ebx, (%rax)
	movq	_class_genwqe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_debugfs_genwqe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	leaq	40(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	36(%r15), %rdi
	callq	_spin_lock_init
	leaq	32(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	_GENWQE_CARD_UNUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	%r15, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	_GENWQE_DDCB_SOFTWARE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_GENWQE_KILL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_GENWQE_MAX_VFS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.9:
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	movq	_GENWQE_VF_JOBTIMEOUT_MSEC@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %edi
	cmpq	%rdi, %rdx
	jb	LBB0_10
LBB0_11:
	movq	(%r14), %rax
	movq	%r15, (%rax,%rbx,8)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GENWQE_CARD_NO_MAX,4,2         ## @GENWQE_CARD_NO_MAX
	.comm	_genwqe_devices,8,3             ## @genwqe_devices
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_class_genwqe,4,2               ## @class_genwqe
	.comm	_debugfs_genwqe,4,2             ## @debugfs_genwqe
	.comm	_CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY,4,2 ## @CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY
	.comm	_GENWQE_CARD_UNUSED,4,2         ## @GENWQE_CARD_UNUSED
	.comm	_GENWQE_DDCB_SOFTWARE_TIMEOUT,4,2 ## @GENWQE_DDCB_SOFTWARE_TIMEOUT
	.comm	_GENWQE_KILL_TIMEOUT,4,2        ## @GENWQE_KILL_TIMEOUT
	.comm	_GENWQE_MAX_VFS,4,2             ## @GENWQE_MAX_VFS
	.comm	_GENWQE_VF_JOBTIMEOUT_MSEC,4,2  ## @GENWQE_VF_JOBTIMEOUT_MSEC
	.no_dead_strip	_genwqe_dev_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genwqe_dev_alloc
_genwqe_dev_alloc:                      ; @genwqe_dev_alloc
	.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
Lloh0:
	adrp	x8, _GENWQE_CARD_NO_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENWQE_CARD_NO_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, #0
Lloh3:
	adrp	x21, _genwqe_devices@GOTPAGE
Lloh4:
	ldr	x21, [x21, _genwqe_devices@GOTPAGEOFF]
	ldr	x9, [x21]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x20, lsl #3]
	cbz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_6:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x19, x0
Lloh10:
	adrp	x8, _class_genwqe@GOTPAGE
Lloh11:
	ldr	x8, [x8, _class_genwqe@GOTPAGEOFF]
	str	w20, [x0]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #52]
Lloh13:
	adrp	x8, _debugfs_genwqe@GOTPAGE
Lloh14:
	ldr	x8, [x8, _debugfs_genwqe@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #44]
	add	x0, x0, #40
	bl	_init_waitqueue_head
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
Lloh19:
	adrp	x8, _GENWQE_CARD_UNUSED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GENWQE_CARD_UNUSED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	add	x0, x19, #24
	bl	_spin_lock_init
Lloh22:
	adrp	x8, _GENWQE_DDCB_SOFTWARE_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GENWQE_DDCB_SOFTWARE_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _GENWQE_KILL_TIMEOUT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GENWQE_KILL_TIMEOUT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh28:
	adrp	x8, _GENWQE_MAX_VFS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GENWQE_MAX_VFS@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.8:
	mov	x9, #0
	ldr	x10, [x19, #8]
Lloh30:
	adrp	x11, _GENWQE_VF_JOBTIMEOUT_MSEC@GOTPAGE
Lloh31:
	ldr	x11, [x11, _GENWQE_VF_JOBTIMEOUT_MSEC@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w12, [x8]
	cmp	x9, x12
	b.lo	LBB0_9
LBB0_10:
	ldr	x8, [x21]
	str	x19, [x8, x20, lsl #3]
	mov	x0, x19
	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
LBB0_11:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GENWQE_CARD_NO_MAX,4,2         ; @GENWQE_CARD_NO_MAX
	.comm	_genwqe_devices,8,3             ; @genwqe_devices
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_class_genwqe,4,2               ; @class_genwqe
	.comm	_debugfs_genwqe,4,2             ; @debugfs_genwqe
	.comm	_CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY,4,2 ; @CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY
	.comm	_GENWQE_CARD_UNUSED,4,2         ; @GENWQE_CARD_UNUSED
	.comm	_GENWQE_DDCB_SOFTWARE_TIMEOUT,4,2 ; @GENWQE_DDCB_SOFTWARE_TIMEOUT
	.comm	_GENWQE_KILL_TIMEOUT,4,2        ; @GENWQE_KILL_TIMEOUT
	.comm	_GENWQE_MAX_VFS,4,2             ; @GENWQE_MAX_VFS
	.comm	_GENWQE_VF_JOBTIMEOUT_MSEC,4,2  ; @GENWQE_VF_JOBTIMEOUT_MSEC
	.no_dead_strip	_genwqe_dev_alloc
.subsections_via_symbols
