	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netmos_parallel_init
_netmos_parallel_init:                  ## @netmos_parallel_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	_PCI_DEVICE_ID_NETMOS_9835@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%rdi), %rcx
	movq	_PCI_VENDOR_ID_IBM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	cmpl	$665, 16(%rdi)                  ## imm = 0x299
	jne	LBB0_4
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movq	_PCI_DEVICE_ID_NETMOS_9912@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	$1, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_6:
	movl	16(%rdi), %ebx
	shrl	$4, %ebx
	andl	$15, %ebx
	movl	%ebx, (%r14)
	movl	4(%r14), %edi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	jle	LBB0_8
## %bb.7:
	movl	4(%r14), %edi
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_NETMOS_9835,8,3  ## @PCI_DEVICE_ID_NETMOS_9835
	.comm	_PCI_VENDOR_ID_IBM,8,3          ## @PCI_VENDOR_ID_IBM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_DEVICE_ID_NETMOS_9912,8,3  ## @PCI_DEVICE_ID_NETMOS_9912
	.no_dead_strip	_netmos_parallel_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netmos_parallel_init
_netmos_parallel_init:                  ; @netmos_parallel_init
	.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, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_NETMOS_9835@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_NETMOS_9835@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _PCI_VENDOR_ID_IBM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCI_VENDOR_ID_IBM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [x0, #16]
	cmp	w9, #665
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x9, _PCI_DEVICE_ID_NETMOS_9912@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_DEVICE_ID_NETMOS_9912@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	mov	w8, #1
	b	LBB0_8
LBB0_6:
	ldr	w8, [x0, #16]
	ubfx	w20, w8, #4, #4
	str	w20, [x19]
	ldr	w0, [x19, #4]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.le	LBB0_9
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
LBB0_8:
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_NETMOS_9835,8,3  ; @PCI_DEVICE_ID_NETMOS_9835
	.comm	_PCI_VENDOR_ID_IBM,8,3          ; @PCI_VENDOR_ID_IBM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_DEVICE_ID_NETMOS_9912,8,3  ; @PCI_DEVICE_ID_NETMOS_9912
	.no_dead_strip	_netmos_parallel_init
.subsections_via_symbols
