	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gigaset_initcshw
_gigaset_initcshw:                      ## @gigaset_initcshw
	.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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_GIGASET_MODULENAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movq	_gigaset_device_release@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_platform_device_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	_gigaset_modem_fill@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movl	$1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	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	_GIGASET_MODULENAME,4,2         ## @GIGASET_MODULENAME
	.comm	_gigaset_device_release,4,2     ## @gigaset_device_release
L_.str.1:                               ## @.str.1
	.asciz	"error %d registering platform device\n"

	.comm	_gigaset_modem_fill,4,2         ## @gigaset_modem_fill
	.no_dead_strip	_gigaset_initcshw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gigaset_initcshw
_gigaset_initcshw:                      ; @gigaset_initcshw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _GIGASET_MODULENAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIGASET_MODULENAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x9, _gigaset_device_release@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gigaset_device_release@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	bl	_platform_device_register
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.2:
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_dev_set_drvdata
Lloh13:
	adrp	x1, _gigaset_modem_fill@GOTPAGE
Lloh14:
	ldr	x1, [x1, _gigaset_modem_fill@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x19
	bl	_tasklet_init
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	_GIGASET_MODULENAME,4,2         ; @GIGASET_MODULENAME
	.comm	_gigaset_device_release,4,2     ; @gigaset_device_release
l_.str.1:                               ; @.str.1
	.asciz	"error %d registering platform device\n"

	.comm	_gigaset_modem_fill,4,2         ; @gigaset_modem_fill
	.no_dead_strip	_gigaset_initcshw
.subsections_via_symbols
