	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_deskpro
_init_deskpro:                          ## @init_deskpro
	.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, %rbx
	movl	$3140, %edi                     ## imm = 0xC44
	callq	_inb
	movzbl	%al, %edi
	cmpl	$255, %edi
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	orl	$4, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	$3140, %edi                     ## imm = 0xC44
	callq	_inb
	cmpl	$4, %eax
	jne	LBB0_5
## %bb.6:
	movl	(%rbx), %esi
	cmpl	$3711, %esi                     ## imm = 0xE7F
	jg	LBB0_9
## %bb.7:
	cmpl	$1328, %esi                     ## imm = 0x530
	je	LBB0_8
## %bb.13:
	cmpl	$1540, %esi                     ## imm = 0x604
	jne	LBB0_14
## %bb.15:
	movl	$89, %r14d
	jmp	LBB0_16
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
LBB0_3:
	movl	%eax, %edi
	callq	_DDB
	jmp	LBB0_17
LBB0_9:
	cmpl	$3712, %esi                     ## imm = 0xE80
	je	LBB0_12
## %bb.10:
	cmpl	$3904, %esi                     ## imm = 0xF40
	jne	LBB0_14
## %bb.11:
	movl	$90, %r14d
	jmp	LBB0_16
LBB0_8:
	movl	$88, %r14d
	jmp	LBB0_16
LBB0_12:
	movl	$91, %r14d
LBB0_16:
	movl	%r14d, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	%r14d, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	$136, %edi
	movl	$3141, %esi                     ## imm = 0xC45
	callq	_outb
	movl	%r14d, %ebx
	orl	$4, %ebx
	movl	%ebx, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	$16, %edi
	movl	$3141, %esi                     ## imm = 0xC45
	callq	_outb
	movl	%r14d, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	$3, %edi
	movl	$3142, %esi                     ## imm = 0xC46
	callq	_outb
	movl	%ebx, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	$17, %edi
	movl	$3142, %esi                     ## imm = 0xC46
	callq	_outb
	movl	%r14d, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	movl	$124, %edi
	movl	$3143, %esi                     ## imm = 0xC47
	callq	_outb
	movl	%ebx, %edi
	movl	$3140, %esi                     ## imm = 0xC44
	callq	_outb
	xorl	%edi, %edi
	movl	$3143, %esi                     ## imm = 0xC47
	callq	_outb
	movl	$128, %edi
	movl	$3183, %esi                     ## imm = 0xC6F
	callq	_outb
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init_deskpro: Dead port 0xc44\n"

L_.str.1:                               ## @.str.1
	.asciz	"init_deskpro: Invalid bank1 signature in port 0xc44\n"

L_.str.2:                               ## @.str.2
	.asciz	"init_deskpro: Invalid MSS port %x\n"

	.no_dead_strip	_init_deskpro
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_deskpro
_init_deskpro:                          ; @init_deskpro
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w0, #3140
	bl	_inb
	and	w8, w0, #0xff
	cmp	w8, #255
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	orr	w0, w8, #0x4
	mov	w1, #3140
	bl	_outb
	mov	w0, #3140
	bl	_inb
	cmp	w0, #4
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #3711
	b.gt	LBB0_9
; %bb.4:
	cmp	w8, #1328
	b.eq	LBB0_12
; %bb.5:
	cmp	w8, #1540
	b.ne	LBB0_16
; %bb.6:
	mov	w19, #89
	b	LBB0_14
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_printk
	bl	_DDB
	mov	w0, #0
	b	LBB0_15
LBB0_9:
	cmp	w8, #3712
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #3904
	b.ne	LBB0_16
; %bb.11:
	mov	w19, #90
	b	LBB0_14
LBB0_12:
	mov	w19, #88
	b	LBB0_14
LBB0_13:
	mov	w19, #91
LBB0_14:
	mov	x0, x19
	mov	w1, #3140
	bl	_outb
	mov	x0, x19
	mov	w1, #3140
	bl	_outb
	mov	w0, #136
	mov	w1, #3141
	bl	_outb
	orr	w20, w19, #0x4
	mov	x0, x20
	mov	w1, #3140
	bl	_outb
	mov	w0, #16
	mov	w1, #3141
	bl	_outb
	mov	x0, x19
	mov	w1, #3140
	bl	_outb
	mov	w0, #3
	mov	w1, #3142
	bl	_outb
	mov	x0, x20
	mov	w1, #3140
	bl	_outb
	mov	w0, #17
	mov	w1, #3142
	bl	_outb
	mov	x0, x19
	mov	w1, #3140
	bl	_outb
	mov	w0, #124
	mov	w1, #3143
	bl	_outb
	mov	x0, x20
	mov	w1, #3140
	bl	_outb
	mov	w0, #0
	mov	w1, #3143
	bl	_outb
	mov	w0, #128
	mov	w1, #3183
	bl	_outb
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_16:
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init_deskpro: Dead port 0xc44\n"

l_.str.1:                               ; @.str.1
	.asciz	"init_deskpro: Invalid bank1 signature in port 0xc44\n"

l_.str.2:                               ; @.str.2
	.asciz	"init_deskpro: Invalid MSS port %x\n"

	.no_dead_strip	_init_deskpro
.subsections_via_symbols
