	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dev
_alloc_dev:                             ## @alloc_dev
	.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, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$112, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	80(%rbx), %rdi
	callq	_tty_port_init
	movq	_slgt_port_ops@GOTPCREL(%rip), %rax
	movq	%rax, 88(%rbx)
	movq	_MGSL_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	leaq	100(%rbx), %rdi
	movq	_bh_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movabsq	$63331869759901696, %rax        ## imm = 0xE1000000001000
	movq	%rax, (%rbx)
	movq	_DMABUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 80(%rbx)
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movl	%ecx, 84(%rbx)
	leaq	72(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	68(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	64(%rbx), %rdi
	callq	_spin_lock_init
	leaq	60(%rbx), %rdi
	movq	_default_params@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_HDLC_TXIDLE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	%r12d, 8(%rbx)
	movl	%r15d, 12(%rbx)
	leaq	52(%rbx), %rdi
	movq	_tx_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_setup_timer
	movq	%rbx, %rdi
	addq	$48, %rdi
	movq	_rx_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_setup_timer
	movq	%r14, 40(%rbx)
	movl	(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, 28(%rbx)
	movq	_MGSL_BUS_TYPE_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$-1, 16(%rbx)
	jmp	LBB0_3
LBB0_1:
	movslq	%r15d, %rdi
	callq	_DBGERR
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_driver_name,4,2                ## @driver_name
	.comm	_slgt_port_ops,4,2              ## @slgt_port_ops
	.comm	_MGSL_MAGIC,4,2                 ## @MGSL_MAGIC
	.comm	_bh_handler,4,2                 ## @bh_handler
	.comm	_DMABUFSIZE,4,2                 ## @DMABUFSIZE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_default_params,4,2             ## @default_params
	.comm	_HDLC_TXIDLE_FLAGS,4,2          ## @HDLC_TXIDLE_FLAGS
	.comm	_tx_timeout,4,2                 ## @tx_timeout
	.comm	_rx_timeout,4,2                 ## @rx_timeout
	.comm	_MGSL_BUS_TYPE_PCI,4,2          ## @MGSL_BUS_TYPE_PCI
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_alloc_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function alloc_dev
lCPI0_0:
	.long	4096                            ; 0x1000
	.long	14745600                        ; 0xe10000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_alloc_dev:                             ; @alloc_dev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #112
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #80
	bl	_tty_port_init
Lloh3:
	adrp	x8, _slgt_port_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _slgt_port_ops@GOTPAGEOFF]
	str	x8, [x19, #88]
Lloh5:
	adrp	x8, _MGSL_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MGSL_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #104]
	add	x0, x19, #100
Lloh8:
	adrp	x8, _bh_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bh_handler@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh13:
	adrp	x8, _DMABUFSIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMABUFSIZE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #96]
Lloh16:
	adrp	x8, _HZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, #0
	mov	w9, #30
	mul	w9, w8, w9
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w8, w9, [x19, #80]
	add	x0, x19, #72
	bl	_init_waitqueue_head
	add	x0, x19, #68
	bl	_init_waitqueue_head
	add	x0, x19, #64
	bl	_spin_lock_init
	add	x0, x19, #60
Lloh19:
	adrp	x1, _default_params@GOTPAGE
Lloh20:
	ldr	x1, [x1, _default_params@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
Lloh21:
	adrp	x8, _HDLC_TXIDLE_FLAGS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDLC_TXIDLE_FLAGS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	stp	w22, w21, [x19, #8]
	add	x0, x19, #52
Lloh24:
	adrp	x8, _tx_timeout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tx_timeout@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_setup_timer
	add	x0, x19, #48
Lloh27:
	adrp	x8, _rx_timeout@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rx_timeout@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_setup_timer
	str	x20, [x19, #40]
	ldr	w8, [x20]
	str	w8, [x19, #32]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
Lloh30:
	adrp	x8, _MGSL_BUS_TYPE_PCI@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MGSL_BUS_TYPE_PCI@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #24]
Lloh33:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	mov	w9, #-1
	stp	w9, w8, [x19, #16]
	b	LBB0_3
LBB0_2:
	sxtw	x0, w21
	bl	_DBGERR
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_driver_name,4,2                ; @driver_name
	.comm	_slgt_port_ops,4,2              ; @slgt_port_ops
	.comm	_MGSL_MAGIC,4,2                 ; @MGSL_MAGIC
	.comm	_bh_handler,4,2                 ; @bh_handler
	.comm	_DMABUFSIZE,4,2                 ; @DMABUFSIZE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_default_params,4,2             ; @default_params
	.comm	_HDLC_TXIDLE_FLAGS,4,2          ; @HDLC_TXIDLE_FLAGS
	.comm	_tx_timeout,4,2                 ; @tx_timeout
	.comm	_rx_timeout,4,2                 ; @rx_timeout
	.comm	_MGSL_BUS_TYPE_PCI,4,2          ; @MGSL_BUS_TYPE_PCI
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_alloc_dev
.subsections_via_symbols
