	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccid_new                       ## -- Begin function ccid_new
	.p2align	4, 0x90
_ccid_new:                              ## @ccid_new
	.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	%edx, %r12d
	movq	%rsi, %r15
	callq	_ccid_by_number
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	setne	%r13b
	movl	16(%rax,%r13,4), %ebx
	xorl	%eax, %eax
	callq	_gfp_any
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	%r14, (%rax)
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movl	28(%r14), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_4:
	movl	24(%r14), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	16(,%r13,4), %rax
	movl	(%r14,%rax), %edi
	movq	%rbx, %rsi
	callq	_kmem_cache_free
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccid_new                       ; -- Begin function ccid_new
	.p2align	2
_ccid_new:                              ; @ccid_new
	.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	x22, x2
	mov	x21, x1
	bl	_ccid_by_number
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	cmp	w22, #0
	mov	w8, #20
	mov	w9, #16
	csel	x23, x9, x8, eq
	ldr	w19, [x0, x23]
	bl	_gfp_any
	mov	x1, x0
	mov	x0, x19
	bl	_kmem_cache_alloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	str	x20, [x0], #8
	cbz	w22, LBB0_4
; %bb.3:
	ldr	w2, [x20, #28]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
	b	LBB0_8
LBB0_4:
	ldr	w2, [x20, #24]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	blr	x8
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x20, x23]
	mov	x1, x19
	bl	_kmem_cache_free
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, 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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
