	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function db1x_pcmcia_get_status
_db1x_pcmcia_get_status:                ## @db1x_pcmcia_get_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_to_db1x_socket
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_db1x_card_inserted
	xorl	%r13d, %r13d
	movq	_SS_DETECT@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rcx), %r13d
LBB0_2:
	movq	_BCSR_PCMCIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bcsr_read
	movl	%eax, %r15d
	movq	_BCSR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bcsr_read
	movzwl	%ax, %eax
	movq	(%rbx), %rcx
	movq	_BOARD_TYPE_PB1100@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	shrl	$4, %edi
	cmpq	(%rdx), %rcx
	cmovnel	%eax, %edi
	movl	8(%rbx), %esi
	callq	_GET_VS
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$3, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$2, %eax
	jne	LBB0_6
LBB0_5:
	movq	_SS_3VCARD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_SS_XVCARD@GOTPCREL(%rip), %rax
LBB0_7:
	orl	(%rax), %r13d
LBB0_8:
	movl	8(%rbx), %esi
	movzwl	%r15w, %r15d
	movl	%r15d, %edi
	callq	_GET_VCC
	xorl	%r12d, %r12d
	testq	%rax, %rax
	movq	_SS_POWERON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovnel	%eax, %r12d
	orl	%r13d, %r12d
	movq	(%rbx), %rcx
	movq	_BOARD_TYPE_DB1300@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.9:
	movq	_SS_DETECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r12d, %ecx
	je	LBB0_11
## %bb.10:
	movq	_SS_3VCARD@GOTPCREL(%rip), %rdx
	orl	%eax, %ecx
	orl	(%rdx), %ecx
	movl	%ecx, %r12d
LBB0_11:
	movl	8(%rbx), %esi
	movl	%r15d, %edi
	callq	_GET_RESET
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	_SS_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_SS_READY@GOTPCREL(%rip), %rax
LBB0_14:
	orl	(%rax), %r12d
	movl	%r12d, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
	.comm	_BCSR_PCMCIA,4,2                ## @BCSR_PCMCIA
	.comm	_BCSR_STATUS,4,2                ## @BCSR_STATUS
	.comm	_BOARD_TYPE_PB1100,8,3          ## @BOARD_TYPE_PB1100
	.comm	_SS_3VCARD,4,2                  ## @SS_3VCARD
	.comm	_SS_XVCARD,4,2                  ## @SS_XVCARD
	.comm	_SS_POWERON,4,2                 ## @SS_POWERON
	.comm	_BOARD_TYPE_DB1300,8,3          ## @BOARD_TYPE_DB1300
	.comm	_SS_READY,4,2                   ## @SS_READY
	.comm	_SS_RESET,4,2                   ## @SS_RESET
	.no_dead_strip	_db1x_pcmcia_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function db1x_pcmcia_get_status
_db1x_pcmcia_get_status:                ; @db1x_pcmcia_get_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_to_db1x_socket
	mov	x20, x0
	bl	_db1x_card_inserted
Lloh0:
	adrp	x22, _SS_DETECT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SS_DETECT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x0, #0
	csel	w23, wzr, w8, eq
Lloh2:
	adrp	x8, _BCSR_PCMCIA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCSR_PCMCIA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_bcsr_read
	mov	x21, x0
Lloh5:
	adrp	x8, _BCSR_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BCSR_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_bcsr_read
Lloh8:
	adrp	x8, _BOARD_TYPE_PB1100@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BOARD_TYPE_PB1100@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh10:
	ldr	x8, [x8]
	lsr	w10, w0, #4
	cmp	x9, x8
	csel	w0, w10, w0, eq
	ldr	w1, [x20, #8]
	bl	_GET_VS
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w0, #3
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #2
	b.ne	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _SS_3VCARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SS_3VCARD@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _SS_XVCARD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SS_XVCARD@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_6:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_GET_VCC
Lloh15:
	adrp	x8, _SS_POWERON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SS_POWERON@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w9, wzr, w8, eq
	orr	w23, w9, w23
	ldr	x9, [x20]
Lloh18:
	adrp	x10, _BOARD_TYPE_DB1300@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BOARD_TYPE_DB1300@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [x22]
	tst	w9, w23
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x10, _SS_3VCARD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SS_3VCARD@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w23, w8, w10
LBB0_9:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_GET_RESET
Lloh24:
	adrp	x8, _SS_READY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SS_READY@GOTPAGEOFF]
Lloh26:
	adrp	x9, _SS_RESET@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SS_RESET@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	orr	w8, w8, w23
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
	.comm	_BCSR_PCMCIA,4,2                ; @BCSR_PCMCIA
	.comm	_BCSR_STATUS,4,2                ; @BCSR_STATUS
	.comm	_BOARD_TYPE_PB1100,8,3          ; @BOARD_TYPE_PB1100
	.comm	_SS_3VCARD,4,2                  ; @SS_3VCARD
	.comm	_SS_XVCARD,4,2                  ; @SS_XVCARD
	.comm	_SS_POWERON,4,2                 ; @SS_POWERON
	.comm	_BOARD_TYPE_DB1300,8,3          ; @BOARD_TYPE_DB1300
	.comm	_SS_READY,4,2                   ; @SS_READY
	.comm	_SS_RESET,4,2                   ; @SS_RESET
	.no_dead_strip	_db1x_pcmcia_get_status
.subsections_via_symbols
