	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_netmos
_quirk_netmos:                          ## @quirk_netmos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	4(%rdi), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %r8d
	movl	%r8d, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	cmpl	$2, %eax
	je	LBB0_2
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	andl	$15, %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pci_info
	movq	_PCI_CLASS_COMMUNICATION_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	movzbl	8(%rbx), %ecx
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	12(%rbx), %eax
	movq	_PCI_VENDOR_ID_IBM@GOTPCREL(%rip), %rsi
	xorl	(%rsi), %eax
	movl	%r8d, %esi
	xorl	$665, %esi                      ## imm = 0x299
	orl	%eax, %esi
	jne	LBB0_3
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_IBM,4,2          ## @PCI_VENDOR_ID_IBM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Netmos %04x (%u parallel, %u serial); changing class SERIAL to OTHER (use parport_serial)\n"

	.comm	_PCI_CLASS_COMMUNICATION_OTHER,4,2 ## @PCI_CLASS_COMMUNICATION_OTHER
	.no_dead_strip	_quirk_netmos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_netmos
_quirk_netmos:                          ; @quirk_netmos
	.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
	ldr	w2, [x0, #4]
	sub	w9, w2, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	ubfx	w3, w8, #4, #4
	cmp	w9, #2
	b.eq	LBB0_5
; %bb.2:
	cbz	w3, LBB0_4
LBB0_3:
	and	w4, w8, #0xf
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_info
Lloh2:
	adrp	x8, _PCI_CLASS_COMMUNICATION_OTHER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_CLASS_COMMUNICATION_OTHER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldrb	w9, [x19, #8]
	bfi	w9, w8, #8, #24
	str	w9, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w9, [x19, #12]
Lloh5:
	adrp	x10, _PCI_VENDOR_ID_IBM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCI_VENDOR_ID_IBM@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, #665
	ccmp	w9, w10, #0, eq
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_IBM,4,2          ; @PCI_VENDOR_ID_IBM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Netmos %04x (%u parallel, %u serial); changing class SERIAL to OTHER (use parport_serial)\n"

	.comm	_PCI_CLASS_COMMUNICATION_OTHER,4,2 ; @PCI_CLASS_COMMUNICATION_OTHER
	.no_dead_strip	_quirk_netmos
.subsections_via_symbols
