	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnp_find_card                  ## -- Begin function pnp_find_card
	.p2align	4, 0x90
_pnp_find_card:                         ## @pnp_find_card
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %edx
	movl	%edi, %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_pnp_convert_id
	movq	_ISAPNP_ANY_ID@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	movl	%edx, %esi
	callq	_pnp_convert_id
	leaq	8(%rbx), %rax
	testq	%rbx, %rbx
	movq	_pnp_cards@GOTPCREL(%rip), %r13
	cmoveq	%r13, %rax
	movq	(%rax), %rbx
	cmpq	%r13, %rbx
	je	LBB0_6
## %bb.1:
	leaq	-56(%rbp), %r14
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_global_to_pnp_card
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_compare_pnp_id
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	cmpq	%r13, %rbx
	jne	LBB0_2
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ISAPNP_ANY_ID,2,1              ## @ISAPNP_ANY_ID
	.comm	_pnp_cards,8,3                  ## @pnp_cards
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnp_find_card                  ; -- Begin function pnp_find_card
	.p2align	2
_pnp_find_card:                         ; @pnp_find_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x0, sp, #16
	bl	_pnp_convert_id
Lloh3:
	adrp	x8, _ISAPNP_ANY_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISAPNP_ANY_ID@GOTPAGEOFF]
	ldrh	w1, [x8]
	add	x0, sp, #8
	mov	x2, x1
	bl	_pnp_convert_id
	add	x8, x19, #8
Lloh5:
	adrp	x21, _pnp_cards@GOTPAGE
Lloh6:
	ldr	x21, [x21, _pnp_cards@GOTPAGEOFF]
	cmp	x19, #0
	csel	x8, x21, x8, eq
	ldr	x19, [x8]
	cmp	x19, x21
	b.eq	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_global_to_pnp_card
	mov	x20, x0
	ldr	w0, [x0]
	add	x1, sp, #16
	bl	_compare_pnp_id
	cbnz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #7
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x19, [x19]
	cmp	x19, x21
	b.ne	LBB0_1
LBB0_4:
	mov	x20, #0
LBB0_5:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ISAPNP_ANY_ID,2,1              ; @ISAPNP_ANY_ID
	.comm	_pnp_cards,8,3                  ; @pnp_cards
.subsections_via_symbols
