	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camdd_get_buf                  ## -- Begin function camdd_get_buf
	.p2align	4, 0x90
_camdd_get_buf:                         ## @camdd_get_buf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r15d
	jne	LBB0_7
## %bb.2:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	_links@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	32(%rbx), %r12
	movl	24(%rbx), %r13d
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_bzero
	movq	%r12, 32(%rbx)
	movl	%r13d, 24(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movq	_links@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_bzero
LBB0_6:
	leaq	16(%rbx), %rdi
	callq	_STAILQ_INIT
	movq	%r14, 8(%rbx)
	movl	%r15d, (%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_warnx
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_camdd_alloc_buf                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_links,4,2                      ## @links
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown buffer type %d requested"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camdd_get_buf                  ; -- Begin function camdd_get_buf
	.p2align	2
_camdd_get_buf:                         ; @camdd_get_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_7
; %bb.2:
	add	x22, x20, #4
	mov	x0, x22
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x8, _links@GOTPAGE
Lloh1:
	ldr	x8, [x8, _links@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_STAILQ_REMOVE_HEAD
	ldr	x22, [x21, #32]
	ldr	w23, [x21, #24]
	mov	x0, x21
	mov	w1, #40
	bl	_bzero
	str	x22, [x21, #32]
	str	w23, [x21, #24]
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh3:
	adrp	x8, _links@GOTPAGE
Lloh4:
	ldr	x8, [x8, _links@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STAILQ_REMOVE_HEAD
	mov	x0, x21
	mov	w1, #40
	bl	_bzero
LBB0_6:
	add	x0, x21, #16
	bl	_STAILQ_INIT
	str	x20, [x21, #8]
	str	w19, [x21]
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_camdd_alloc_buf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_links,4,2                      ; @links
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown buffer type %d requested"

.subsections_via_symbols
