	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function softingcs_probe_config
_softingcs_probe_config:                ## @softingcs_probe_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	sete	%dil
	callq	_WARN_ON
	movq	(%r14), %rax
	movq	_PCMCIA_IOMEM_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	callq	_resource_size
	cmpl	$4095, %eax                     ## imm = 0xFFF
	jg	LBB0_1
## %bb.5:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_WIN_MEMORY_TYPE_CM@GOTPCREL(%rip), %rcx
	movq	_WIN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	xorl	%ecx, %ecx
	cmpl	$2, (%r15)
	setl	%dl
	jl	LBB0_2
## %bb.3:
	movq	_WIN_DATA_WIDTH_16@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	jmp	LBB0_4
LBB0_2:
	movq	_WIN_USE_WAIT@GOTPCREL(%rip), %rdi
	movq	_WIN_DATA_WIDTH_8@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdi), %esi
LBB0_4:
	movb	%dl, %cl
	leal	(%rcx,%rcx,2), %edx
	orl	%eax, %esi
	movl	%esi, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcmcia_request_window          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCMCIA_IOMEM_0,8,3             ## @PCMCIA_IOMEM_0
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_WIN_MEMORY_TYPE_CM,4,2         ## @WIN_MEMORY_TYPE_CM
	.comm	_WIN_ENABLE,4,2                 ## @WIN_ENABLE
	.comm	_WIN_USE_WAIT,4,2               ## @WIN_USE_WAIT
	.comm	_WIN_DATA_WIDTH_8,4,2           ## @WIN_DATA_WIDTH_8
	.comm	_WIN_DATA_WIDTH_16,4,2          ## @WIN_DATA_WIDTH_16
	.no_dead_strip	_softingcs_probe_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function softingcs_probe_config
_softingcs_probe_config:                ; @softingcs_probe_config
	.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	x21, x1
	mov	x19, x0
	cmp	x1, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PCMCIA_IOMEM_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCMCIA_IOMEM_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_resource_size
	cmp	w0, #4095
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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_2:
Lloh6:
	adrp	x8, _WIN_MEMORY_TYPE_CM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WIN_MEMORY_TYPE_CM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _WIN_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WIN_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
Lloh12:
	adrp	x9, _WIN_DATA_WIDTH_16@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WIN_DATA_WIDTH_16@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _WIN_USE_WAIT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _WIN_USE_WAIT@GOTPAGEOFF]
Lloh17:
	adrp	x12, _WIN_DATA_WIDTH_8@GOTPAGE
Lloh18:
	ldr	x12, [x12, _WIN_DATA_WIDTH_8@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
Lloh20:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	w10, #2
	csel	w9, w11, w9, lt
	mov	w10, #3
	csel	w2, w10, wzr, lt
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	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
	b	_pcmcia_request_window
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCMCIA_IOMEM_0,8,3             ; @PCMCIA_IOMEM_0
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_WIN_MEMORY_TYPE_CM,4,2         ; @WIN_MEMORY_TYPE_CM
	.comm	_WIN_ENABLE,4,2                 ; @WIN_ENABLE
	.comm	_WIN_USE_WAIT,4,2               ; @WIN_USE_WAIT
	.comm	_WIN_DATA_WIDTH_8,4,2           ; @WIN_DATA_WIDTH_8
	.comm	_WIN_DATA_WIDTH_16,4,2          ; @WIN_DATA_WIDTH_16
	.no_dead_strip	_softingcs_probe_config
.subsections_via_symbols
