	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mgslpc_probe
_mgslpc_probe:                          ## @mgslpc_probe
	.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, %r14
	movq	_debug_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEBUG_LEVEL_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_MGSLPC_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	leaq	48(%rbx), %rdi
	callq	_tty_port_init
	movq	_mgslpc_port_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	leaq	64(%rbx), %rdi
	movq	_bh_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	$4096, (%rbx)                   ## imm = 0x1000
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 48(%rbx)
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movl	%ecx, 52(%rbx)
	leaq	44(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	40(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	36(%rbx), %rdi
	callq	_spin_lock_init
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$28, %rdi
	movq	_default_params@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_HDLC_TXIDLE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$281470681808895, %rax          ## imm = 0xFFFF0000FFFF
	movq	%rax, 4(%rbx)
	movl	$255, 12(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rbx, 32(%r14)
	movq	_IRQ_TYPE_DYNAMIC_SHARING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_IRQ_LEVEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	_INT_MEMORY_AND_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_mgslpc_config
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_mgslpc_add_device
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_level,8,3                ## @debug_level
	.comm	_DEBUG_LEVEL_INFO,8,3           ## @DEBUG_LEVEL_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mgslpc_attach\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Error can't allocate device instance data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MGSLPC_MAGIC,4,2               ## @MGSLPC_MAGIC
	.comm	_mgslpc_port_ops,4,2            ## @mgslpc_port_ops
	.comm	_bh_handler,4,2                 ## @bh_handler
	.comm	_HZ,4,2                         ## @HZ
	.comm	_default_params,4,2             ## @default_params
	.comm	_HDLC_TXIDLE_FLAGS,4,2          ## @HDLC_TXIDLE_FLAGS
	.comm	_IRQ_TYPE_DYNAMIC_SHARING,4,2   ## @IRQ_TYPE_DYNAMIC_SHARING
	.comm	_IRQ_LEVEL_ID,4,2               ## @IRQ_LEVEL_ID
	.comm	_INT_MEMORY_AND_IO,4,2          ## @INT_MEMORY_AND_IO
	.no_dead_strip	_mgslpc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mgslpc_probe
_mgslpc_probe:                          ; @mgslpc_probe
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _debug_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_level@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DEBUG_LEVEL_INFO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_LEVEL_INFO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_2:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh11:
	adrp	x8, _MGSLPC_MAGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MGSLPC_MAGIC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #68]
	add	x0, x0, #48
	bl	_tty_port_init
Lloh14:
	adrp	x8, _mgslpc_port_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mgslpc_port_ops@GOTPAGEOFF]
	str	x8, [x20, #56]
	add	x0, x20, #64
Lloh16:
	adrp	x8, _bh_handler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bh_handler@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	w8, #4096
	str	w8, [x20]
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	mov	w10, #30
	mul	w8, w8, w10
	stp	w9, w8, [x20, #48]
	add	x0, x20, #44
	bl	_init_waitqueue_head
	add	x0, x20, #40
	bl	_init_waitqueue_head
	add	x0, x20, #36
	bl	_spin_lock_init
	add	x0, x20, #32
	bl	_spin_lock_init
	add	x0, x20, #28
Lloh22:
	adrp	x1, _default_params@GOTPAGE
Lloh23:
	ldr	x1, [x1, _default_params@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
Lloh24:
	adrp	x8, _HDLC_TXIDLE_FLAGS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDLC_TXIDLE_FLAGS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	movi	d0, #0x00ffff0000ffff
	stur	d0, [x20, #4]
	mov	w8, #255
	str	w8, [x20, #12]
	str	x19, [x20, #16]
	str	x20, [x19, #32]
Lloh27:
	adrp	x8, _IRQ_TYPE_DYNAMIC_SHARING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_TYPE_DYNAMIC_SHARING@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IRQ_LEVEL_ID@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IRQ_LEVEL_ID@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	stp	xzr, xzr, [x19, #8]
Lloh33:
	adrp	x8, _INT_MEMORY_AND_IO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INT_MEMORY_AND_IO@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_mgslpc_config
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_mgslpc_add_device
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
Lloh38:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_level,8,3                ; @debug_level
	.comm	_DEBUG_LEVEL_INFO,8,3           ; @DEBUG_LEVEL_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mgslpc_attach\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Error can't allocate device instance data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MGSLPC_MAGIC,4,2               ; @MGSLPC_MAGIC
	.comm	_mgslpc_port_ops,4,2            ; @mgslpc_port_ops
	.comm	_bh_handler,4,2                 ; @bh_handler
	.comm	_HZ,4,2                         ; @HZ
	.comm	_default_params,4,2             ; @default_params
	.comm	_HDLC_TXIDLE_FLAGS,4,2          ; @HDLC_TXIDLE_FLAGS
	.comm	_IRQ_TYPE_DYNAMIC_SHARING,4,2   ; @IRQ_TYPE_DYNAMIC_SHARING
	.comm	_IRQ_LEVEL_ID,4,2               ; @IRQ_LEVEL_ID
	.comm	_INT_MEMORY_AND_IO,4,2          ; @INT_MEMORY_AND_IO
	.no_dead_strip	_mgslpc_probe
.subsections_via_symbols
