	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aoedev_by_aoeaddr              ## -- Begin function aoedev_by_aoeaddr
	.p2align	4, 0x90
_aoedev_by_aoeaddr:                     ## @aoedev_by_aoeaddr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	_devlist_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_devlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, (%rbx)
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, 8(%rbx)
	jne	LBB0_1
## %bb.5:
	leaq	116(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_DEVFL_TKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_19
## %bb.6:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.8:
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_minor_get
	testq	%rax, %rax
	js	LBB0_15
## %bb.9:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$1, %edi
	movl	$128, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %rbx
	movq	_NTARGETS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r12), %edx
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%r13), %eax
	movl	%eax, 20(%rbx)
	leaq	120(%rbx), %rdi
	movq	_aoecmd_sleepwork@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	116(%rbx), %rdi
	callq	_spin_lock_init
	leaq	112(%rbx), %rdi
	callq	_skb_queue_head_init
	leaq	88(%rbx), %r12
	movq	%r12, %rdi
	callq	_init_timer
	movq	%rbx, 104(%rbx)
	movq	_dummy_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 88(%rbx)
	movq	%r12, %rdi
	callq	_add_timer
	movq	$0, 80(%rbx)
	movq	64(%rbx), %rax
	movq	%rax, 72(%rbx)
	movl	$1, 16(%rbx)
	movq	_NFACTIVE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.12:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rdi
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %r12
	jl	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_INIT_LIST_HEAD
	movq	-56(%rbp), %rax
	movq	%rax, 40(%rbx)
	movq	%r15, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	_RTTAVG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_RTTDEV_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_devlist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, (%rcx)
	jmp	LBB0_20
LBB0_15:
	xorl	%ebx, %ebx
LBB0_20:
	movq	_devlist_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_19:
	incl	16(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_devlist_lock,4,2               ## @devlist_lock
	.comm	_devlist,8,3                    ## @devlist
	.comm	_DEVFL_TKILL,4,2                ## @DEVFL_TKILL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_NTARGETS,4,2                   ## @NTARGETS
	.comm	_aoecmd_sleepwork,4,2           ## @aoecmd_sleepwork
	.comm	_dummy_timer,4,2                ## @dummy_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_NFACTIVE,4,2                   ## @NFACTIVE
	.comm	_RTTAVG_INIT,4,2                ## @RTTAVG_INIT
	.comm	_RTTDEV_INIT,4,2                ## @RTTDEV_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aoedev_by_aoeaddr              ; -- Begin function aoedev_by_aoeaddr
	.p2align	2
_aoedev_by_aoeaddr:                     ; @aoedev_by_aoeaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, _devlist_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _devlist_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x23, _devlist@GOTPAGE
Lloh3:
	ldr	x23, [x23, _devlist@GOTPAGEOFF]
	ldr	x19, [x23]
	cbnz	x19, LBB0_10
LBB0_1:
	cbz	w22, LBB0_14
; %bb.2:
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_minor_get
	tbnz	x0, #63, LBB0_14
; %bb.3:
Lloh4:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w0, #1
	mov	w1, #128
	bl	_kcalloc
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.4:
Lloh6:
	adrp	x25, _NTARGETS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NTARGETS@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w2, [x22]
	mov	w24, #1
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_16
; %bb.5:
	ldr	w8, [x25]
	str	w8, [x19, #20]
	add	x0, x19, #120
Lloh8:
	adrp	x8, _aoecmd_sleepwork@GOTPAGE
Lloh9:
	ldr	x8, [x8, _aoecmd_sleepwork@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #116
	bl	_spin_lock_init
	add	x0, x19, #112
	bl	_skb_queue_head_init
	add	x22, x19, #88
	mov	x0, x22
	bl	_init_timer
	str	x19, [x19, #104]
Lloh11:
	adrp	x8, _dummy_timer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dummy_timer@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #96]
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #88]
	mov	x0, x22
	bl	_add_timer
	ldr	x8, [x19, #64]
	stp	x8, xzr, [x19, #72]
	str	w24, [x19, #16]
Lloh20:
	adrp	x22, _NFACTIVE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _NFACTIVE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x24, #0
	mov	x25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x24
	bl	_INIT_LIST_HEAD
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_7
LBB0_8:
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	ldr	x8, [sp, #8]
	str	x8, [x19, #40]
	str	x21, [x19]
	str	w20, [x19, #8]
Lloh22:
	adrp	x8, _RTTAVG_INIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RTTAVG_INIT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _RTTDEV_INIT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RTTDEV_INIT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	x8, [x23]
	str	x8, [x19, #24]
	str	x19, [x23]
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x19, [x19, #24]
	cbz	x19, LBB0_1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.12:
	add	x20, x19, #116
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x19, #12]
Lloh28:
	adrp	x9, _DEVFL_TKILL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DEVFL_TKILL@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
	mov	x0, x20
	bl	_spin_unlock
LBB0_14:
	mov	x19, #0
LBB0_15:
Lloh31:
	adrp	x0, _devlist_lock@GOTPAGE
Lloh32:
	ldr	x0, [x0, _devlist_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_15
LBB0_17:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_devlist_lock,4,2               ; @devlist_lock
	.comm	_devlist,8,3                    ; @devlist
	.comm	_DEVFL_TKILL,4,2                ; @DEVFL_TKILL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_NTARGETS,4,2                   ; @NTARGETS
	.comm	_aoecmd_sleepwork,4,2           ; @aoecmd_sleepwork
	.comm	_dummy_timer,4,2                ; @dummy_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_NFACTIVE,4,2                   ; @NFACTIVE
	.comm	_RTTAVG_INIT,4,2                ; @RTTAVG_INIT
	.comm	_RTTDEV_INIT,4,2                ; @RTTDEV_INIT
.subsections_via_symbols
