	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccid2_hc_tx_alloc_seq
_ccid2_hc_tx_alloc_seq:                 ## @ccid2_hc_tx_alloc_seq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%rdi, %r14
	movq	_CCID2_SEQBUF_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	shll	$4, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_gfp_any
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r10
	movl	(%r12), %ecx
	leal	-1(%rcx), %r9d
	cmpl	$2, %ecx
	jl	LBB0_11
## %bb.4:
	movl	%r9d, %r8d
	cmpl	$1, %r9d
	jne	LBB0_7
## %bb.5:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	movq	%r10, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	16(%rcx), %rdx
	movq	%rdx, (%rcx)
	movq	%rcx, 24(%rcx)
	addq	$2, %rdi
	leaq	32(%rcx), %rbx
	movq	%rbx, 16(%rcx)
	movq	%rdx, 40(%rcx)
	movq	%rbx, %rcx
	cmpq	%rdi, %rsi
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	shlq	$4, %rdi
	leaq	(%rax,%rdi), %rcx
	addq	$16, %rcx
	leaq	(%rax,%rdi), %rdx
	movq	%rcx, (%r10,%rdi)
	movq	%rdx, 24(%r10,%rdi)
LBB0_11:
	movslq	%r9d, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	movq	%r10, (%r10,%rcx)
	movq	%rax, 8(%r10)
	movslq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.13:
	movq	24(%r14), %rcx
	movq	%r10, (%rcx)
	movq	%rcx, 8(%r10)
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	%rcx, (%rax)
	jmp	LBB0_14
LBB0_12:
	movq	%r10, 16(%r14)
	movq	%r10, 24(%r14)
LBB0_14:
	movq	8(%r14), %rax
	movq	%r10, (%rax,%rdx,8)
	leal	1(%rdx), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CCID2_SEQBUF_LEN,4,2           ## @CCID2_SEQBUF_LEN
	.no_dead_strip	_ccid2_hc_tx_alloc_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccid2_hc_tx_alloc_seq
_ccid2_hc_tx_alloc_seq:                 ; @ccid2_hc_tx_alloc_seq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_15
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x21, _CCID2_SEQBUF_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CCID2_SEQBUF_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w20, w8, #4
	bl	_gfp_any
	mov	x1, x0
	mov	x0, x20
	bl	_kmalloc
	cbz	x0, LBB0_1
; %bb.3:
	ldr	w9, [x21]
	sub	w8, w9, #1
	cmp	w9, #2
	b.lt	LBB0_11
; %bb.4:
	cmp	w8, #4
	b.hs	LBB0_6
; %bb.5:
	mov	x9, #0
	b	LBB0_9
LBB0_6:
	and	x9, x8, #0xfffffffc
	mov	x10, x9
	mov	x11, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x11, #64
	mov	x13, x11
	str	x12, [x13, #48]!
	mov	x14, x11
	str	x13, [x14, #32]!
	mov	x15, x11
	str	x14, [x15, #16]!
	str	x15, [x11]
	str	x11, [x11, #24]
	str	x15, [x11, #40]
	str	x14, [x11, #56]
	str	x13, [x11, #72]
	mov	x11, x12
	subs	x10, x10, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_9:
	add	x10, x0, x9, lsl #4
	sub	x9, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x10, #16
	str	x11, [x10]
	str	x10, [x10, #24]
	mov	x10, x11
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	add	x8, x0, w8, sxtw #4
	str	x0, [x8]
	str	x8, [x0, #8]
	ldrsw	x9, [x19]
	cbz	w9, LBB0_13
; %bb.12:
	ldp	x11, x10, [x19, #16]
	str	x0, [x10]
	str	x10, [x0, #8]
	str	x8, [x11, #8]
	str	x11, [x8]
	b	LBB0_14
LBB0_13:
	stp	x0, x0, [x19, #16]
LBB0_14:
	mov	w8, #0
	ldr	x10, [x19, #8]
	str	x0, [x10, x9, lsl #3]
	add	w9, w9, #1
	str	w9, [x19]
LBB0_15:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CCID2_SEQBUF_LEN,4,2           ; @CCID2_SEQBUF_LEN
	.no_dead_strip	_ccid2_hc_tx_alloc_seq
.subsections_via_symbols
