	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_devmatch
_pcmcia_devmatch:                       ## @pcmcia_devmatch
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movq	_PCMCIA_DEV_ID_MATCH_MANF_ID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	cmpq	$0, 64(%r14)
	je	LBB0_46
## %bb.2:
	movq	(%r14), %rcx
	cmpq	8(%r15), %rcx
	jne	LBB0_46
LBB0_3:
	movq	_PCMCIA_DEV_ID_MATCH_CARD_ID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	cmpq	$0, 56(%r14)
	je	LBB0_46
## %bb.5:
	movq	8(%r14), %rcx
	cmpq	16(%r15), %rcx
	jne	LBB0_46
LBB0_6:
	movq	_PCMCIA_DEV_ID_MATCH_FUNCTION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	16(%r14), %rcx
	xorl	%ebx, %ebx
	cmpq	24(%r15), %rcx
	jne	LBB0_46
LBB0_8:
	movq	_PCMCIA_DEV_ID_MATCH_PROD_ID1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	72(%r14), %rax
	movq	(%rax), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_46
## %bb.10:
	movq	56(%r15), %rax
	movl	(%rax), %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_46
## %bb.11:
	movl	(%r15), %eax
LBB0_12:
	movq	_PCMCIA_DEV_ID_MATCH_PROD_ID2@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.13:
	movq	72(%r14), %rax
	movq	8(%rax), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_46
## %bb.14:
	movq	56(%r15), %rax
	movl	4(%rax), %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_46
## %bb.15:
	movl	(%r15), %eax
LBB0_16:
	movq	_PCMCIA_DEV_ID_MATCH_PROD_ID3@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.17:
	movq	72(%r14), %rax
	movq	16(%rax), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_46
## %bb.18:
	movq	56(%r15), %rax
	movl	8(%rax), %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_46
## %bb.19:
	movl	(%r15), %eax
LBB0_20:
	movq	_PCMCIA_DEV_ID_MATCH_PROD_ID4@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.21:
	movq	72(%r14), %rax
	movq	24(%rax), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_46
## %bb.22:
	movq	56(%r15), %rax
	movl	12(%rax), %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_46
## %bb.23:
	movl	(%r15), %eax
LBB0_24:
	movq	_PCMCIA_DEV_ID_MATCH_DEVICE_NO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.25:
	leaq	88(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	80(%r14), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	movq	80(%r14), %rdi
	movl	$1, (%rdi)
	addq	$8, %rdi
	callq	_mutex_unlock
	movq	24(%r14), %rax
	xorl	%ebx, %ebx
	cmpq	32(%r15), %rax
	jne	LBB0_46
## %bb.26:
	movl	(%r15), %eax
LBB0_27:
	movq	_PCMCIA_DEV_ID_MATCH_FUNC_ID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_34
## %bb.28:
	xorl	%ebx, %ebx
	cmpq	$0, 48(%r14)
	je	LBB0_46
## %bb.29:
	movq	32(%r14), %rax
	cmpq	40(%r15), %rax
	jne	LBB0_46
## %bb.30:
	movq	80(%r14), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_46
## %bb.31:
	cmpq	$0, 24(%r14)
	jne	LBB0_46
## %bb.32:
	addq	$8, %rdi
	callq	_mutex_lock
	movq	80(%r14), %rdi
	addq	$8, %rdi
	movl	40(%r14), %r12d
	callq	_mutex_unlock
	testl	%r12d, %r12d
	je	LBB0_47
## %bb.33:
	movl	(%r15), %eax
LBB0_34:
	movq	_PCMCIA_DEV_ID_MATCH_FAKE_CIS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.35:
	leaq	88(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	80(%r14), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_36
LBB0_37:
	movq	_PCMCIA_DEV_ID_MATCH_ANONYMOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	testl	%eax, (%r15)
	je	LBB0_46
## %bb.38:
	movq	72(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_45
## %bb.39:
	cmpq	$0, 8(%rax)
	jne	LBB0_45
## %bb.40:
	cmpq	$0, 16(%rax)
	jne	LBB0_45
## %bb.41:
	cmpq	$0, 24(%rax)
	jne	LBB0_45
## %bb.42:
	cmpq	$0, 64(%r14)
	jne	LBB0_45
## %bb.43:
	cmpq	$0, 56(%r14)
	jne	LBB0_45
## %bb.44:
	cmpq	$0, 48(%r14)
	je	LBB0_46
LBB0_45:
	xorl	%ebx, %ebx
	jmp	LBB0_46
LBB0_36:
	movl	48(%r15), %esi
	movq	%r14, %rdi
	callq	_pcmcia_load_firmware
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_37
LBB0_46:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	addq	$88, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.comm	_PCMCIA_DEV_ID_MATCH_MANF_ID,4,2 ## @PCMCIA_DEV_ID_MATCH_MANF_ID
	.comm	_PCMCIA_DEV_ID_MATCH_CARD_ID,4,2 ## @PCMCIA_DEV_ID_MATCH_CARD_ID
	.comm	_PCMCIA_DEV_ID_MATCH_FUNCTION,4,2 ## @PCMCIA_DEV_ID_MATCH_FUNCTION
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID1,4,2 ## @PCMCIA_DEV_ID_MATCH_PROD_ID1
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID2,4,2 ## @PCMCIA_DEV_ID_MATCH_PROD_ID2
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID3,4,2 ## @PCMCIA_DEV_ID_MATCH_PROD_ID3
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID4,4,2 ## @PCMCIA_DEV_ID_MATCH_PROD_ID4
	.comm	_PCMCIA_DEV_ID_MATCH_DEVICE_NO,4,2 ## @PCMCIA_DEV_ID_MATCH_DEVICE_NO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this is a pseudo-multi-function device\n"

	.comm	_PCMCIA_DEV_ID_MATCH_FUNC_ID,4,2 ## @PCMCIA_DEV_ID_MATCH_FUNC_ID
L_.str.1:                               ## @.str.1
	.asciz	"skipping FUNC_ID match until userspace ACK\n"

	.comm	_PCMCIA_DEV_ID_MATCH_FAKE_CIS,4,2 ## @PCMCIA_DEV_ID_MATCH_FAKE_CIS
L_.str.2:                               ## @.str.2
	.asciz	"device needs a fake CIS\n"

	.comm	_PCMCIA_DEV_ID_MATCH_ANONYMOUS,4,2 ## @PCMCIA_DEV_ID_MATCH_ANONYMOUS
	.no_dead_strip	_pcmcia_devmatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_devmatch
_pcmcia_devmatch:                       ; @pcmcia_devmatch
	.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, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_MANF_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_MANF_ID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x9, [x19, #64]
	cbz	x9, LBB0_46
; %bb.2:
	ldr	x9, [x19]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.ne	LBB0_46
LBB0_3:
Lloh3:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_CARD_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_CARD_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_46
; %bb.5:
	ldr	x9, [x19, #8]
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.ne	LBB0_46
LBB0_6:
Lloh6:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_FUNCTION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_FUNCTION@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x9, [x19, #16]
	ldr	x10, [x20, #24]
	cmp	x9, x10
	b.ne	LBB0_46
LBB0_8:
Lloh9:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_PROD_ID1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_PROD_ID1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	x8, [x19, #72]
	ldr	x1, [x8]
	cbz	x1, LBB0_46
; %bb.10:
	ldr	x8, [x20, #56]
	ldr	w0, [x8]
	bl	_strcmp
	cbnz	x0, LBB0_46
; %bb.11:
	ldr	w8, [x20]
LBB0_12:
Lloh12:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_PROD_ID2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_PROD_ID2@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.13:
	ldr	x8, [x19, #72]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_46
; %bb.14:
	ldr	x8, [x20, #56]
	ldr	w0, [x8, #4]
	bl	_strcmp
	cbnz	x0, LBB0_46
; %bb.15:
	ldr	w8, [x20]
LBB0_16:
Lloh15:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_PROD_ID3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_PROD_ID3@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:
	ldr	x8, [x19, #72]
	ldr	x1, [x8, #16]
	cbz	x1, LBB0_46
; %bb.18:
	ldr	x8, [x20, #56]
	ldr	w0, [x8, #8]
	bl	_strcmp
	cbnz	x0, LBB0_46
; %bb.19:
	ldr	w8, [x20]
LBB0_20:
Lloh18:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_PROD_ID4@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_PROD_ID4@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
	ldr	x8, [x19, #72]
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_46
; %bb.22:
	ldr	x8, [x20, #56]
	ldr	w0, [x8, #12]
	bl	_strcmp
	cbnz	x0, LBB0_46
; %bb.23:
	ldr	w8, [x20]
LBB0_24:
Lloh21:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_DEVICE_NO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_DEVICE_NO@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.25:
	add	x0, x19, #88
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #80]
	add	x0, x8, #8
	bl	_mutex_lock
	ldr	x0, [x19, #80]
	mov	w8, #1
	str	w8, [x0], #8
	bl	_mutex_unlock
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.26:
	ldr	w8, [x20]
LBB0_27:
Lloh26:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_FUNC_ID@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_FUNC_ID@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.28:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_46
; %bb.29:
	ldr	x8, [x19, #32]
	ldr	x9, [x20, #40]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.30:
	ldr	x8, [x19, #80]
	ldr	w9, [x8]
	cbnz	w9, LBB0_46
; %bb.31:
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_46
; %bb.32:
	add	x0, x8, #8
	bl	_mutex_lock
	ldr	w21, [x19, #40]
	ldr	x8, [x19, #80]
	add	x0, x8, #8
	bl	_mutex_unlock
	cbz	w21, LBB0_48
; %bb.33:
	ldr	w8, [x20]
LBB0_34:
Lloh29:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_FAKE_CIS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_FAKE_CIS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
	add	x0, x19, #88
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #80]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_45
LBB0_36:
	ldr	w8, [x20]
Lloh34:
	adrp	x9, _PCMCIA_DEV_ID_MATCH_ANONYMOUS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PCMCIA_DEV_ID_MATCH_ANONYMOUS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.37:
	ldr	x8, [x19, #72]
	ldr	x9, [x8]
	cbnz	x9, LBB0_46
; %bb.38:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_46
; %bb.39:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_46
; %bb.40:
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_46
; %bb.41:
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_46
; %bb.42:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_46
; %bb.43:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_46
LBB0_44:
	mov	w0, #1
	b	LBB0_47
LBB0_45:
	ldr	w1, [x20, #48]
	mov	x0, x19
	bl	_pcmcia_load_firmware
	cbz	x0, LBB0_36
LBB0_46:
	mov	w0, #0
LBB0_47:
	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
LBB0_48:
	add	x0, x19, #88
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_46
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_PCMCIA_DEV_ID_MATCH_MANF_ID,4,2 ; @PCMCIA_DEV_ID_MATCH_MANF_ID
	.comm	_PCMCIA_DEV_ID_MATCH_CARD_ID,4,2 ; @PCMCIA_DEV_ID_MATCH_CARD_ID
	.comm	_PCMCIA_DEV_ID_MATCH_FUNCTION,4,2 ; @PCMCIA_DEV_ID_MATCH_FUNCTION
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID1,4,2 ; @PCMCIA_DEV_ID_MATCH_PROD_ID1
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID2,4,2 ; @PCMCIA_DEV_ID_MATCH_PROD_ID2
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID3,4,2 ; @PCMCIA_DEV_ID_MATCH_PROD_ID3
	.comm	_PCMCIA_DEV_ID_MATCH_PROD_ID4,4,2 ; @PCMCIA_DEV_ID_MATCH_PROD_ID4
	.comm	_PCMCIA_DEV_ID_MATCH_DEVICE_NO,4,2 ; @PCMCIA_DEV_ID_MATCH_DEVICE_NO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this is a pseudo-multi-function device\n"

	.comm	_PCMCIA_DEV_ID_MATCH_FUNC_ID,4,2 ; @PCMCIA_DEV_ID_MATCH_FUNC_ID
l_.str.1:                               ; @.str.1
	.asciz	"skipping FUNC_ID match until userspace ACK\n"

	.comm	_PCMCIA_DEV_ID_MATCH_FAKE_CIS,4,2 ; @PCMCIA_DEV_ID_MATCH_FAKE_CIS
l_.str.2:                               ; @.str.2
	.asciz	"device needs a fake CIS\n"

	.comm	_PCMCIA_DEV_ID_MATCH_ANONYMOUS,4,2 ; @PCMCIA_DEV_ID_MATCH_ANONYMOUS
	.no_dead_strip	_pcmcia_devmatch
.subsections_via_symbols
