	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cciss_alloc_drive_info
_cciss_alloc_drive_info:                ## @cciss_alloc_drive_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_CISS_MAX_LUN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$-1, %eax
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r8
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_15
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	sete	%dl
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, (%rcx)
	jne	LBB0_15
## %bb.7:
	movb	$1, %dl
LBB0_8:
	testl	%esi, %esi
	jne	LBB0_11
## %bb.9:
	cmpl	%ebx, (%r14)
	jge	LBB0_11
## %bb.10:
	movl	%ebx, (%r14)
LBB0_11:
	testb	%dl, %dl
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
LBB0_13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.14:
	movl	$-1, (%rcx)
	movq	8(%r14), %rax
	movq	%rcx, (%rax,%rbx,8)
	movl	%ebx, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISS_MAX_LUN,4,2               ## @CISS_MAX_LUN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_cciss_alloc_drive_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cciss_alloc_drive_info
_cciss_alloc_drive_info:                ; @cciss_alloc_drive_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _CISS_MAX_LUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CISS_MAX_LUN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldr	x10, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x9, x20
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x10, x20, lsl #3]
	cmp	x8, #0
	ccmp	x20, #0, #4, ne
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, #0
	cset	w11, eq
	cbnz	x20, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x8]
	cmn	w11, #1
	b.ne	LBB0_2
; %bb.7:
	mov	w11, #1
LBB0_8:
	cbnz	w1, LBB0_11
; %bb.9:
	ldr	w9, [x19]
	cmp	w9, w20
	b.ge	LBB0_11
; %bb.10:
	str	w20, [x19]
LBB0_11:
	cbz	w11, LBB0_16
; %bb.12:
	cbz	x8, LBB0_16
; %bb.13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x8, x0
	mov	w0, #-1
	cbz	x8, LBB0_15
; %bb.17:
	str	w0, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9, x20, lsl #3]
	mov	x0, x20
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CISS_MAX_LUN,4,2               ; @CISS_MAX_LUN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_cciss_alloc_drive_info
.subsections_via_symbols
