	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_check_one_config
_pcmcia_check_one_config:               ## @pcmcia_check_one_config
	.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	%r8, %r14
	movq	%rdi, %rbx
	cmpl	$0, 16(%r8)
	je	LBB0_14
## %bb.1:
	movq	_CISTPL_POWER_VNOM@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	$1, %edi
	movl	%r10d, %ecx
	shll	%cl, %edi
	jmp	LBB0_2
LBB0_14:
	movl	%ecx, %r8d
	movl	48(%rsi), %r9d
	movq	_CISTPL_POWER_VNOM@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movslq	%r10d, %rcx
	movl	$1, %edi
	shll	%cl, %edi
	btl	%ecx, %r9d
	jae	LBB0_19
## %bb.15:
	movq	56(%rsi), %rax
	jmp	LBB0_16
LBB0_19:
	testl	%edi, 48(%rdx)
	je	LBB0_2
## %bb.20:
	movq	56(%rdx), %rax
LBB0_16:
	movslq	(%rax,%rcx,4), %rax
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	cmpl	%r8d, %eax
	jne	LBB0_17
LBB0_2:
	movq	%rsi, %rcx
	testl	%edi, 32(%rsi)
	jne	LBB0_4
## %bb.3:
	movq	%rdx, %rcx
	testl	%edi, 32(%rdx)
	je	LBB0_5
LBB0_4:
	movq	40(%rcx), %rax
	movslq	%r10d, %rcx
	movslq	(%rax,%rcx,4), %rax
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 40(%rbx)
LBB0_5:
	movq	8(%rsi), %rax
	testq	%rax, %rax
	jg	LBB0_7
## %bb.6:
	cmpq	$0, 8(%rdx)
	jle	LBB0_17
LBB0_7:
	leaq	8(%rsi), %rcx
	addq	$8, %rdx
	testq	%rax, %rax
	cmovneq	%rcx, %rdx
	movl	(%rsi), %eax
	movl	%eax, 44(%rbx)
	movq	16(%rdx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	8(%rdx), %ecx
	movq	_CISTPL_IO_LINES_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ecx, %esi
	movl	%esi, (%rbx)
	movq	_CISTPL_IO_16BIT@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	jne	LBB0_9
## %bb.8:
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
LBB0_9:
	movq	(%rdx), %rcx
	cmpq	$1, %rcx
	je	LBB0_21
## %bb.10:
	cmpq	$2, %rcx
	jne	LBB0_17
## %bb.11:
	movl	$8, 4(%rbx)
	movq	24(%rax), %rax
	movq	%rax, 24(%rbx)
	cmpq	$1, 8(%r14)
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_request_io
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:
	movq	24(%rbx), %rax
	jmp	LBB0_13
LBB0_21:
	movl	(%rax), %eax
	cmpl	$16, %eax
	jl	LBB0_17
## %bb.22:
	movl	%eax, 4(%rbx)
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_pcmcia_request_io
	testq	%rax, %rax
	je	LBB0_23
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_23:
	movq	16(%rbx), %rax
	addq	$14, %rax
LBB0_13:
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CISTPL_POWER_VNOM,4,2          ## @CISTPL_POWER_VNOM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CISTPL_IO_LINES_MASK,4,2       ## @CISTPL_IO_LINES_MASK
	.comm	_CISTPL_IO_16BIT,4,2            ## @CISTPL_IO_16BIT
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ## @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_pcmcia_check_one_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_check_one_config
_pcmcia_check_one_config:               ; @pcmcia_check_one_config
	.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, x4
	mov	x20, x0
	ldr	w8, [x4, #16]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CISTPL_POWER_VNOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CISTPL_POWER_VNOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w9, w9, w8
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _CISTPL_POWER_VNOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CISTPL_POWER_VNOM@GOTPAGEOFF]
	ldr	w11, [x1, #48]
Lloh5:
	ldr	w8, [x8]
	sxtw	x10, w8
	mov	w9, #1
	lsl	w9, w9, w8
	tst	w9, w11
	b.eq	LBB0_4
; %bb.3:
	ldr	x11, [x1, #56]
	b	LBB0_6
LBB0_4:
	ldr	w11, [x2, #48]
	tst	w11, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	x11, [x2, #56]
LBB0_6:
	ldrsw	x10, [x11, x10, lsl #2]
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #44
	add	w10, w10, w11
	cmp	w10, w3
	b.ne	LBB0_20
LBB0_7:
	ldr	w11, [x1, #32]
	mov	x10, x1
	tst	w9, w11
	b.ne	LBB0_9
; %bb.8:
	ldr	w11, [x2, #32]
	mov	x10, x2
	tst	w11, w9
	b.eq	LBB0_10
LBB0_9:
	ldr	x9, [x10, #40]
	ldrsw	x8, [x9, w8, sxtw #2]
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w9
	str	w8, [x20, #40]
LBB0_10:
	mov	x8, x1
	ldr	x9, [x8, #8]!
	cmp	x9, #0
	b.gt	LBB0_12
; %bb.11:
	ldr	x10, [x2, #8]
	cmp	x10, #1
	b.lt	LBB0_20
LBB0_12:
	add	x10, x2, #8
	cmp	x9, #0
	csel	x9, x10, x8, eq
	ldr	w8, [x1]
	str	w8, [x20, #44]
	ldr	x8, [x9, #16]
	ldr	x10, [x8, #8]
	str	x10, [x20, #16]
	ldr	w10, [x9, #8]
Lloh6:
	adrp	x11, _CISTPL_IO_LINES_MASK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CISTPL_IO_LINES_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	and	w11, w11, w10
	str	w11, [x20]
Lloh9:
	adrp	x11, _CISTPL_IO_16BIT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CISTPL_IO_16BIT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_14
; %bb.13:
Lloh12:
	adrp	x10, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	str	w10, [x20, #32]
LBB0_14:
	ldr	x9, [x9]
	cmp	x9, #1
	b.eq	LBB0_18
; %bb.15:
	cmp	x9, #2
	b.ne	LBB0_20
; %bb.16:
	mov	w9, #8
	ldr	x8, [x8, #24]
	str	x8, [x20, #24]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	stp	w9, w8, [x20, #4]
	mov	x0, x20
	mov	x1, x20
	bl	_pcmcia_request_io
	cbnz	x0, LBB0_20
; %bb.17:
	ldr	x8, [x20, #24]
	b	LBB0_23
LBB0_18:
	ldr	w8, [x8]
	cmp	w8, #16
	b.lt	LBB0_20
; %bb.19:
	stp	w8, wzr, [x20, #4]
	mov	x0, x20
	mov	x1, x20
	bl	_pcmcia_request_io
	cbz	x0, LBB0_22
LBB0_20:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_22:
	ldr	x8, [x20, #16]
	add	x8, x8, #14
LBB0_23:
	str	x8, [x19]
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CISTPL_POWER_VNOM,4,2          ; @CISTPL_POWER_VNOM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CISTPL_IO_LINES_MASK,4,2       ; @CISTPL_IO_LINES_MASK
	.comm	_CISTPL_IO_16BIT,4,2            ; @CISTPL_IO_16BIT
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_pcmcia_check_one_config
.subsections_via_symbols
