	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_if_init                ## -- Begin function gigaset_if_init
	.p2align	4, 0x90
_gigaset_if_init:                       ## @gigaset_if_init
	.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	24(%rdi), %r14
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	addq	$20, %rdi
	movq	_if_wake@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_tasklet_init
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r14), %edi
	movl	16(%rbx), %esi
	xorl	%edx, %edx
	callq	_tty_register_device
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warning
	movq	$0, 8(%rbx)
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_if_wake,4,2                    ## @if_wake
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not register device to the tty subsystem\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_if_init                ; -- Begin function gigaset_if_init
	.p2align	2
_gigaset_if_init:                       ; @gigaset_if_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0, #24]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #20
Lloh0:
	adrp	x1, _if_wake@GOTPAGE
Lloh1:
	ldr	x1, [x1, _if_wake@GOTPAGEOFF]
	mov	x2, x19
	bl	_tasklet_init
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20]
	ldr	w1, [x19, #16]
	mov	x2, #0
	bl	_tty_register_device
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	w0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warning
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_dev_set_drvdata
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_if_wake,4,2                    ; @if_wake
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not register device to the tty subsystem\n"

.subsections_via_symbols
