	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btuart_check_config
_btuart_check_config:                   ## @btuart_check_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	24(%rsi), %ecx
	movq	_CISTPL_POWER_VNOM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.1:
	movq	32(%rsi), %rcx
	movslq	(%rcx,%rax,4), %rax
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$44, %rax
	addl	%ecx, %eax
	movl	%eax, 16(%rdi)
LBB0_2:
	cmpq	$0, (%rsi)
	jle	LBB0_10
## %bb.3:
	movq	16(%rsi), %rax
	cmpl	$8, (%rax)
	jne	LBB0_10
## %bb.4:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, (%rdi)
	cmpl	$0, (%r8)
	je	LBB0_6
## %bb.7:
	movq	_CISTPL_IO_LINES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rsi), %eax
	jmp	LBB0_8
LBB0_6:
	movl	$16, %eax
LBB0_8:
	movl	%eax, 8(%rdi)
	movq	%rdi, %rsi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISTPL_POWER_VNOM,4,2          ## @CISTPL_POWER_VNOM
	.comm	_CISTPL_IO_LINES_MASK,4,2       ## @CISTPL_IO_LINES_MASK
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_btuart_check_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btuart_check_config
_btuart_check_config:                   ; @btuart_check_config
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x1, #24]
Lloh0:
	adrp	x8, _CISTPL_POWER_VNOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CISTPL_POWER_VNOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_2
; %bb.1:
	sxtw	x8, w8
	ldr	x9, [x1, #32]
	ldrsw	x8, [x9, x8, lsl #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, [x0, #16]
LBB0_2:
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.3:
	ldr	x8, [x1, #16]
	ldr	w9, [x8]
	cmp	w9, #8
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.5:
	str	x8, [x0]
	ldr	w8, [x4]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x1, #8]
Lloh3:
	adrp	x9, _CISTPL_IO_LINES_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CISTPL_IO_LINES_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	b	LBB0_8
LBB0_7:
	mov	w8, #16
LBB0_8:
	str	w8, [x0, #8]
	mov	x1, x0
	bl	_pcmcia_request_io
	cbz	w0, LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CISTPL_POWER_VNOM,4,2          ; @CISTPL_POWER_VNOM
	.comm	_CISTPL_IO_LINES_MASK,4,2       ; @CISTPL_IO_LINES_MASK
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_btuart_check_config
.subsections_via_symbols
