	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gigaset_initbcshw
_gigaset_initbcshw:                     ## @gigaset_initbcshw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$200, %edi
	callq	_kmalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	$0, 192(%rax)
	leaq	188(%rax), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	184(%rbx), %rdi
	callq	_spin_lock_init
	movq	_BAS_OUTURBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	movq	176(%rbx), %rcx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_5:
	movl	%eax, %esi
	andl	$-2, %esi
	leaq	24(%rcx), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -16(%rdi)
	movq	%r14, -24(%rdi)
	movq	$0, (%rdi)
	movq	%r14, -8(%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_6
LBB0_7:
	testb	$1, %al
	je	LBB0_9
## %bb.8:
	shlq	$4, %rdx
	movq	$0, 8(%rcx,%rdx)
	movq	%r14, (%rcx,%rdx)
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 152(%rbx)
	movq	$0, 168(%rbx)
	movl	(%r15), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 144(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	140(%rbx), %rdi
	movq	_write_iso_tasklet@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	%rbx, %rdi
	addq	$136, %rdi
	callq	_spin_lock_init
	movq	_BAS_INURBS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.12:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_14
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_14:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	128(%rbx), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	128(%rbx), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	movq	128(%rbx), %rsi
	movq	$0, 16(%rsi,%rcx,8)
	movq	128(%rbx), %rsi
	movq	$0, 24(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_15
LBB0_16:
	testq	%rax, %rax
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	128(%rbx), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_17
LBB0_18:
	movq	$0, 120(%rbx)
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 112(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 72(%rbx)
	movups	%xmm0, 88(%rbx)
	movq	$0, 104(%rbx)
	movq	_read_iso_tasklet@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_tasklet_init
	movl	$1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_BAS_OUTURBS,4,2                ## @BAS_OUTURBS
	.comm	_write_iso_tasklet,4,2          ## @write_iso_tasklet
	.comm	_BAS_INURBS,4,2                 ## @BAS_INURBS
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_read_iso_tasklet,4,2           ## @read_iso_tasklet
	.no_dead_strip	_gigaset_initbcshw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gigaset_initbcshw
_gigaset_initbcshw:                     ; @gigaset_initbcshw
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #200
	bl	_kmalloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	xzr, [x0, #192]
	add	x0, x0, #188
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #184
	bl	_spin_lock_init
Lloh2:
	adrp	x8, _BAS_OUTURBS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BAS_OUTURBS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x9, [x20, #176]
	cmp	w8, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #0
	b	LBB0_16
LBB0_5:
	and	x10, x8, #0xfffffff8
	dup.2d	v0, x19
	add	x12, x9, #64
	movi.2d	v1, #0000000000000000
	mov	x11, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x13, x12, #64
	st2.2d	{ v0, v1 }, [x13]
	sub	x13, x12, #32
	st2.2d	{ v0, v1 }, [x13]
	add	x13, x12, #128
	st2.2d	{ v0, v1 }, [x12], #32
	st2.2d	{ v0, v1 }, [x12]
	mov	x12, x13
	subs	x11, x11, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	add	x9, x9, x10, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stp	x19, xzr, [x9, #-8]
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	stp	xzr, xzr, [x20, #152]
	str	xzr, [x20, #168]
	ldr	w1, [x21]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x20, #144]
	cbz	x0, LBB0_15
; %bb.11:
	add	x0, x20, #140
Lloh7:
	adrp	x1, _write_iso_tasklet@GOTPAGE
Lloh8:
	ldr	x1, [x1, _write_iso_tasklet@GOTPAGEOFF]
	mov	x2, x19
	bl	_tasklet_init
	add	x0, x20, #136
	bl	_spin_lock_init
Lloh9:
	adrp	x8, _BAS_INURBS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BAS_INURBS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #128]
	str	xzr, [x10, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_13
LBB0_14:
Lloh12:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	str	xzr, [x20, #120]
Lloh14:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #112]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #8]
	stur	q0, [x20, #24]
	stur	q0, [x20, #40]
	stur	q0, [x20, #56]
	stur	q0, [x20, #72]
	stur	q0, [x20, #88]
	str	xzr, [x20, #104]
Lloh15:
	adrp	x1, _read_iso_tasklet@GOTPAGE
Lloh16:
	ldr	x1, [x1, _read_iso_tasklet@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_tasklet_init
	mov	w0, #1
	b	LBB0_16
LBB0_15:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	str	xzr, [x19]
LBB0_16:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_BAS_OUTURBS,4,2                ; @BAS_OUTURBS
	.comm	_write_iso_tasklet,4,2          ; @write_iso_tasklet
	.comm	_BAS_INURBS,4,2                 ; @BAS_INURBS
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_read_iso_tasklet,4,2           ; @read_iso_tasklet
	.no_dead_strip	_gigaset_initbcshw
.subsections_via_symbols
