	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_if_initdriver          ## -- Begin function gigaset_if_initdriver
	.p2align	4, 0x90
_gigaset_if_initdriver:                 ## @gigaset_if_initdriver
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	$0, 4(%r14)
	callq	_alloc_tty_driver
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_TTY_DRIVER_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_GIG_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_TTY_DRIVER_TYPE_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_SERIAL_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_TTY_DRIVER_REAL_RAW@GOTPCREL(%rip), %rax
	movq	_TTY_DRIVER_DYNAMIC_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r12, 8(%rbx)
	movq	%r15, 16(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 36(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_B9600@GOTPCREL(%rip), %rax
	movq	_CS8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CREAD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_HUPCL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CLOCAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movq	_if_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_tty_set_operations
	movq	%rbx, %rdi
	callq	_tty_register_driver
	testl	%eax, %eax
	js	LBB0_2
## %bb.6:
	movq	_DEBUG_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_gig_dbg
	movl	$1, 4(%r14)
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_4:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_tty_driver                 ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTY_DRIVER_MAGIC,4,2           ## @TTY_DRIVER_MAGIC
	.comm	_GIG_MAJOR,4,2                  ## @GIG_MAJOR
	.comm	_TTY_DRIVER_TYPE_SERIAL,4,2     ## @TTY_DRIVER_TYPE_SERIAL
	.comm	_SERIAL_TYPE_NORMAL,4,2         ## @SERIAL_TYPE_NORMAL
	.comm	_TTY_DRIVER_REAL_RAW,4,2        ## @TTY_DRIVER_REAL_RAW
	.comm	_TTY_DRIVER_DYNAMIC_DEV,4,2     ## @TTY_DRIVER_DYNAMIC_DEV
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_tty_std_termios,4,2            ## @tty_std_termios
	.comm	_B9600,4,2                      ## @B9600
	.comm	_CS8,4,2                        ## @CS8
	.comm	_CREAD,4,2                      ## @CREAD
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_if_ops,4,2                     ## @if_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d registering tty driver\n"

	.comm	_DEBUG_IF,4,2                   ## @DEBUG_IF
L_.str.1:                               ## @.str.1
	.asciz	"tty driver initialized"

L_.str.2:                               ## @.str.2
	.asciz	"out of memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gigaset_if_initdriver          ; -- Begin function gigaset_if_initdriver
	.p2align	2
_gigaset_if_initdriver:                 ; @gigaset_if_initdriver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	str	wzr, [x19, #4]
	bl	_alloc_tty_driver
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _TTY_DRIVER_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTY_DRIVER_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GIG_MAJOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GIG_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
Lloh6:
	adrp	x8, _TTY_DRIVER_TYPE_SERIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TTY_DRIVER_TYPE_SERIAL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SERIAL_TYPE_NORMAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SERIAL_TYPE_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh12:
	adrp	x8, _TTY_DRIVER_REAL_RAW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TTY_DRIVER_REAL_RAW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TTY_DRIVER_DYNAMIC_DEV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TTY_DRIVER_DYNAMIC_DEV@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	stp	x22, x21, [x0, #8]
	ldr	w8, [x19, #16]
	ldr	w9, [x19]
Lloh18:
	adrp	x10, _THIS_MODULE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _THIS_MODULE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w8, [x0, #32]
Lloh21:
	adrp	x8, _B9600@GOTPAGE
Lloh22:
	ldr	x8, [x8, _B9600@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x10, _CS8@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CS8@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh27:
	adrp	x10, _CREAD@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CREAD@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh30:
	adrp	x10, _HUPCL@GOTPAGE
Lloh31:
	ldr	x10, [x10, _HUPCL@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh33:
	adrp	x10, _CLOCAL@GOTPAGE
Lloh34:
	ldr	x10, [x10, _CLOCAL@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w8, w8, w10
	stp	w9, w8, [x0, #24]
Lloh36:
	adrp	x1, _if_ops@GOTPAGE
Lloh37:
	ldr	x1, [x1, _if_ops@GOTPAGEOFF]
	bl	_tty_set_operations
	mov	x0, x20
	bl	_tty_register_driver
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh38:
	adrp	x8, _DEBUG_IF@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DEBUG_IF@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_gig_dbg
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_3:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x0, [sp]
Lloh45:
	adrp	x0, l_.str@PAGE
Lloh46:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_pr_err
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	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
	add	sp, sp, #64
	b	_put_tty_driver
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_TTY_DRIVER_MAGIC,4,2           ; @TTY_DRIVER_MAGIC
	.comm	_GIG_MAJOR,4,2                  ; @GIG_MAJOR
	.comm	_TTY_DRIVER_TYPE_SERIAL,4,2     ; @TTY_DRIVER_TYPE_SERIAL
	.comm	_SERIAL_TYPE_NORMAL,4,2         ; @SERIAL_TYPE_NORMAL
	.comm	_TTY_DRIVER_REAL_RAW,4,2        ; @TTY_DRIVER_REAL_RAW
	.comm	_TTY_DRIVER_DYNAMIC_DEV,4,2     ; @TTY_DRIVER_DYNAMIC_DEV
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_tty_std_termios,4,2            ; @tty_std_termios
	.comm	_B9600,4,2                      ; @B9600
	.comm	_CS8,4,2                        ; @CS8
	.comm	_CREAD,4,2                      ; @CREAD
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_if_ops,4,2                     ; @if_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d registering tty driver\n"

	.comm	_DEBUG_IF,4,2                   ; @DEBUG_IF
l_.str.1:                               ; @.str.1
	.asciz	"tty driver initialized"

l_.str.2:                               ; @.str.2
	.asciz	"out of memory\n"

.subsections_via_symbols
