	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfcomm_init_ttys               ## -- Begin function rfcomm_init_ttys
	.p2align	4, 0x90
_rfcomm_init_ttys:                      ## @rfcomm_init_ttys
	.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	_RFCOMM_TTY_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_tty_driver
	movq	_rfcomm_tty_driver@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%r14), %rdi
	movq	%rcx, 8(%rdi)
	movq	_RFCOMM_TTY_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	movq	_RFCOMM_TTY_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdi)
	movq	_TTY_DRIVER_TYPE_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movq	_SERIAL_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	movq	_TTY_DRIVER_REAL_RAW@GOTPCREL(%rip), %rax
	movq	_TTY_DRIVER_DYNAMIC_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 16(%rdi)
	movq	_tty_std_termios@GOTPCREL(%rip), %rax
	movq	_B9600@GOTPCREL(%rip), %rcx
	movq	_CS8@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	4(%rax), %eax
	movq	_CREAD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_HUPCL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 20(%rdi)
	movq	_ICANON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 24(%rdi)
	movq	_rfcomm_ops@GOTPCREL(%rip), %rsi
	callq	_tty_set_operations
	movq	(%r14), %rdi
	callq	_tty_register_driver
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	(%r14), %rdi
	callq	_put_tty_driver
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_BT_INFO
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFCOMM_TTY_PORTS,4,2           ## @RFCOMM_TTY_PORTS
	.comm	_rfcomm_tty_driver,8,3          ## @rfcomm_tty_driver
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rfcomm"

	.comm	_RFCOMM_TTY_MAJOR,4,2           ## @RFCOMM_TTY_MAJOR
	.comm	_RFCOMM_TTY_MINOR,4,2           ## @RFCOMM_TTY_MINOR
	.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	_tty_std_termios,8,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	_ICANON,4,2                     ## @ICANON
	.comm	_rfcomm_ops,4,2                 ## @rfcomm_ops
L_.str.1:                               ## @.str.1
	.asciz	"Can't register RFCOMM TTY driver"

L_.str.2:                               ## @.str.2
	.asciz	"RFCOMM TTY layer initialized"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfcomm_init_ttys               ; -- Begin function rfcomm_init_ttys
	.p2align	2
_rfcomm_init_ttys:                      ; @rfcomm_init_ttys
	.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
Lloh0:
	adrp	x8, _RFCOMM_TTY_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFCOMM_TTY_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_tty_driver
Lloh3:
	adrp	x19, _rfcomm_tty_driver@GOTPAGE
Lloh4:
	ldr	x19, [x19, _rfcomm_tty_driver@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #44]
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	x0, [x19]
	str	x8, [x0, #8]
Lloh10:
	adrp	x8, _RFCOMM_TTY_MAJOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RFCOMM_TTY_MAJOR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #40]
Lloh13:
	adrp	x8, _RFCOMM_TTY_MINOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RFCOMM_TTY_MINOR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _TTY_DRIVER_TYPE_SERIAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TTY_DRIVER_TYPE_SERIAL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh19:
	adrp	x8, _SERIAL_TYPE_NORMAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SERIAL_TYPE_NORMAL@GOTPAGEOFF]
Lloh21:
	adrp	x9, _TTY_DRIVER_REAL_RAW@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TTY_DRIVER_REAL_RAW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _TTY_DRIVER_DYNAMIC_DEV@GOTPAGE
Lloh25:
	ldr	x10, [x10, _TTY_DRIVER_DYNAMIC_DEV@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _B9600@GOTPAGE
Lloh28:
	ldr	x11, [x11, _B9600@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh29:
	ldr	w10, [x11]
Lloh30:
	adrp	x11, _CS8@GOTPAGE
Lloh31:
	ldr	x11, [x11, _CS8@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh33:
	adrp	x11, _CREAD@GOTPAGE
Lloh34:
	ldr	x11, [x11, _CREAD@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh36:
	adrp	x11, _HUPCL@GOTPAGE
Lloh37:
	ldr	x11, [x11, _HUPCL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh40:
	adrp	x11, _CLOCAL@GOTPAGE
Lloh41:
	ldr	x11, [x11, _CLOCAL@GOTPAGEOFF]
Lloh42:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh43:
	adrp	x11, _tty_std_termios@GOTPAGE
Lloh44:
	ldr	x11, [x11, _tty_std_termios@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11, #4]
	stp	w9, w10, [x0, #16]
Lloh46:
	adrp	x9, _ICANON@GOTPAGE
Lloh47:
	ldr	x9, [x9, _ICANON@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	bic	w9, w11, w9
	stp	w9, w8, [x0, #24]
Lloh49:
	adrp	x1, _rfcomm_ops@GOTPAGE
Lloh50:
	ldr	x1, [x1, _rfcomm_ops@GOTPAGEOFF]
	bl	_tty_set_operations
	ldr	x0, [x19]
	bl	_tty_register_driver
	cbz	x0, LBB0_4
; %bb.2:
Lloh51:
	adrp	x0, l_.str.1@PAGE
Lloh52:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	ldr	x0, [x19]
	bl	_put_tty_driver
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh53:
	adrp	x0, l_.str.2@PAGE
Lloh54:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_INFO
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.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	Lloh19, Lloh20, Lloh38
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_RFCOMM_TTY_PORTS,4,2           ; @RFCOMM_TTY_PORTS
	.comm	_rfcomm_tty_driver,8,3          ; @rfcomm_tty_driver
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rfcomm"

	.comm	_RFCOMM_TTY_MAJOR,4,2           ; @RFCOMM_TTY_MAJOR
	.comm	_RFCOMM_TTY_MINOR,4,2           ; @RFCOMM_TTY_MINOR
	.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	_tty_std_termios,8,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	_ICANON,4,2                     ; @ICANON
	.comm	_rfcomm_ops,4,2                 ; @rfcomm_ops
l_.str.1:                               ; @.str.1
	.asciz	"Can't register RFCOMM TTY driver"

l_.str.2:                               ; @.str.2
	.asciz	"RFCOMM TTY layer initialized"

.subsections_via_symbols
