	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbcs_probe
_mbcs_probe:                            ## @mbcs_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	$0, 8(%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	16(%r14), %eax
	movl	%eax, 60(%rbx)
	leaq	56(%rbx), %rdi
	movq	_soft_list@GOTPCREL(%rip), %rsi
	callq	_list_add
	movl	16(%r14), %edi
	callq	_tiocx_swin_base
	movq	%rax, 48(%rbx)
	movq	%rbx, 8(%r14)
	movq	%r14, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	28(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	24(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	20(%rbx), %rdi
	callq	_mutex_init
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	leaq	12(%rbx), %rdi
	callq	_mutex_init
	leaq	8(%rbx), %rdi
	callq	_mbcs_getdma_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_mbcs_putdma_init
	movq	%rbx, %rdi
	callq	_mbcs_algo_init
	movq	%rbx, %rdi
	callq	_mbcs_hw_init
	movq	%r14, %rdi
	callq	_mbcs_intr_alloc
	movq	_dev_attr_algo@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_soft_list,4,2                  ## @soft_list
	.comm	_dev_attr_algo,4,2              ## @dev_attr_algo
	.no_dead_strip	_mbcs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbcs_probe
_mbcs_probe:                            ; @mbcs_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
	str	xzr, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19, #16]
	str	w8, [x0, #60]
	add	x0, x0, #56
Lloh3:
	adrp	x1, _soft_list@GOTPAGE
Lloh4:
	ldr	x1, [x1, _soft_list@GOTPAGEOFF]
	bl	_list_add
	ldr	w0, [x19, #16]
	bl	_tiocx_swin_base
	str	x20, [x19, #8]
	stp	x19, x0, [x20, #40]
	add	x0, x20, #32
	bl	_init_waitqueue_head
	add	x0, x20, #28
	bl	_init_waitqueue_head
	add	x0, x20, #24
	bl	_init_waitqueue_head
	add	x0, x20, #20
	bl	_mutex_init
	add	x0, x20, #16
	bl	_mutex_init
	add	x0, x20, #12
	bl	_mutex_init
	add	x0, x20, #8
	bl	_mbcs_getdma_init
	add	x0, x20, #4
	bl	_mbcs_putdma_init
	mov	x0, x20
	bl	_mbcs_algo_init
	mov	x0, x20
	bl	_mbcs_hw_init
	mov	x0, x19
	bl	_mbcs_intr_alloc
Lloh5:
	adrp	x1, _dev_attr_algo@GOTPAGE
Lloh6:
	ldr	x1, [x1, _dev_attr_algo@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_soft_list,4,2                  ; @soft_list
	.comm	_dev_attr_algo,4,2              ; @dev_attr_algo
	.no_dead_strip	_mbcs_probe
.subsections_via_symbols
