	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ocrdma_pd_mgr_get_bitmap
__ocrdma_pd_mgr_get_bitmap:             ## @_ocrdma_pd_mgr_get_bitmap
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rdi
	movl	52(%rax), %esi
	callq	_find_first_zero_bit
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	___set_bit
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rax)
	cmpq	16(%rax), %rdx
	jl	LBB0_5
## %bb.2:
	movq	%rcx, 16(%rax)
	jmp	LBB0_5
LBB0_3:
	movq	24(%rax), %rdi
	movl	48(%rax), %esi
	callq	_find_first_zero_bit
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	24(%rax), %rsi
	movl	%r14d, %edi
	callq	___set_bit
	movq	(%rbx), %rax
	movq	32(%rax), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, 32(%rax)
	cmpq	40(%rax), %rdx
	jl	LBB0_5
## %bb.4:
	movq	%rcx, 40(%rax)
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__ocrdma_pd_mgr_get_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ocrdma_pd_mgr_get_bitmap
__ocrdma_pd_mgr_get_bitmap:             ; @_ocrdma_pd_mgr_get_bitmap
	.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
	mov	x20, x0
	ldr	x8, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x0, [x8]
	ldr	w1, [x8, #52]
	bl	_find_first_zero_bit
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x1, [x8]
	bl	___set_bit
	ldr	x8, [x20]
	ldp	x10, x11, [x8, #8]
	add	x9, x10, #1
	str	x9, [x8, #8]
	cmp	x10, x11
	b.lt	LBB0_5
; %bb.2:
	str	x9, [x8, #16]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x8, #24]
	ldr	w1, [x8, #48]
	bl	_find_first_zero_bit
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x1, [x8, #24]
	bl	___set_bit
	ldr	x8, [x20]
	ldp	x10, x11, [x8, #32]
	add	x9, x10, #1
	str	x9, [x8, #32]
	cmp	x10, x11
	b.lt	LBB0_5
; %bb.4:
	str	x9, [x8, #40]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__ocrdma_pd_mgr_get_bitmap
.subsections_via_symbols
