	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cardu_get_status
_cardu_get_status:                      ## @cardu_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_cardu_sockets@GOTPCREL(%rip), %rax
	movl	%edi, %r15d
	shlq	$2, %r15
	addq	(%rax), %r15
	movq	_IF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_exca_readb
	movl	%eax, %r12d
	movq	_CARD_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	je	LBB0_2
## %bb.1:
	movq	_SS_POWERON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%r12d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_SS_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	movq	_CARD_WP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	je	LBB0_6
## %bb.5:
	movq	_SS_WRPROT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	movq	_CARD_DETECT1@GOTPCREL(%rip), %rdx
	movq	_CARD_DETECT2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	orl	%eax, %ebx
	movl	%r12d, %edx
	notl	%edx
	xorl	%eax, %eax
	testl	%edx, %esi
	jne	LBB0_8
## %bb.7:
	movq	_SS_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ecx
	orl	%ecx, %ebx
	movq	_INT_GEN_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_exca_readb
	movq	_CARD_TYPE_IO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movq	_STSCHG@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.10:
	movq	_SS_STSCHG@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_BV_DETECT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_BV_DETECT_GOOD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_16
## %bb.12:
	movq	_BV_DETECT_WARN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.13:
	movq	_SS_BATWARN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_SS_BATDEAD@GOTPCREL(%rip), %rax
LBB0_15:
	orl	(%rax), %ebx
LBB0_16:
	movq	_SKT_PRE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cardbus_socket_readl
	movq	_VOL_3V_CARD_DT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %ecx
	andl	%eax, %ecx
	je	LBB0_18
## %bb.17:
	movq	_SS_3VCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_18:
	movq	_VOL_XV_CARD_DT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edi
	andl	%eax, %edi
	je	LBB0_20
## %bb.19:
	movq	_SS_XVCARD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_20:
	movq	_CB_CARD_DT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_22
## %bb.21:
	movq	_SS_CARDBUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_22:
	orl	%edx, %ecx
	orl	%edi, %ebx
	movq	_VOL_YV_CARD_DT@GOTPCREL(%rip), %rdx
	movq	_VOL_5V_CARD_DT@GOTPCREL(%rip), %rdi
	movq	_CCD20@GOTPCREL(%rip), %r9
	movq	_CCD10@GOTPCREL(%rip), %r10
	orl	%r8d, %esi
	orl	(%rdx), %esi
	orl	(%rdi), %esi
	orl	(%r9), %esi
	orl	(%r10), %esi
	movl	$0, %edx
	testl	%eax, %esi
	jne	LBB0_24
## %bb.23:
	movq	_SS_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_24:
	orl	%edx, %ecx
	orl	%ecx, %ebx
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cardu_sockets,8,3              ## @cardu_sockets
	.comm	_IF_STATUS,4,2                  ## @IF_STATUS
	.comm	_CARD_PWR,4,2                   ## @CARD_PWR
	.comm	_SS_POWERON,4,2                 ## @SS_POWERON
	.comm	_READY,4,2                      ## @READY
	.comm	_SS_READY,4,2                   ## @SS_READY
	.comm	_CARD_WP,4,2                    ## @CARD_WP
	.comm	_SS_WRPROT,4,2                  ## @SS_WRPROT
	.comm	_CARD_DETECT1,4,2               ## @CARD_DETECT1
	.comm	_CARD_DETECT2,4,2               ## @CARD_DETECT2
	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
	.comm	_INT_GEN_CNT,4,2                ## @INT_GEN_CNT
	.comm	_CARD_TYPE_IO,4,2               ## @CARD_TYPE_IO
	.comm	_STSCHG,4,2                     ## @STSCHG
	.comm	_SS_STSCHG,4,2                  ## @SS_STSCHG
	.comm	_BV_DETECT_MASK,4,2             ## @BV_DETECT_MASK
	.comm	_BV_DETECT_GOOD,4,2             ## @BV_DETECT_GOOD
	.comm	_BV_DETECT_WARN,4,2             ## @BV_DETECT_WARN
	.comm	_SS_BATWARN,4,2                 ## @SS_BATWARN
	.comm	_SS_BATDEAD,4,2                 ## @SS_BATDEAD
	.comm	_SKT_PRE_STATE,4,2              ## @SKT_PRE_STATE
	.comm	_VOL_3V_CARD_DT,4,2             ## @VOL_3V_CARD_DT
	.comm	_SS_3VCARD,4,2                  ## @SS_3VCARD
	.comm	_VOL_XV_CARD_DT,4,2             ## @VOL_XV_CARD_DT
	.comm	_SS_XVCARD,4,2                  ## @SS_XVCARD
	.comm	_CB_CARD_DT,4,2                 ## @CB_CARD_DT
	.comm	_SS_CARDBUS,4,2                 ## @SS_CARDBUS
	.comm	_VOL_YV_CARD_DT,4,2             ## @VOL_YV_CARD_DT
	.comm	_VOL_5V_CARD_DT,4,2             ## @VOL_5V_CARD_DT
	.comm	_CCD20,4,2                      ## @CCD20
	.comm	_CCD10,4,2                      ## @CCD10
	.comm	_SS_PENDING,4,2                 ## @SS_PENDING
	.no_dead_strip	_cardu_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cardu_get_status
_cardu_get_status:                      ; @cardu_get_status
	.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	x19, x1
Lloh0:
	adrp	x8, _cardu_sockets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardu_sockets@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, w0, uxtw #2
Lloh3:
	adrp	x8, _IF_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IF_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_exca_readb
	mov	x21, x0
Lloh6:
	adrp	x8, _CARD_PWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_PWR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SS_POWERON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SS_POWERON@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
Lloh12:
	adrp	x9, _READY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _READY@GOTPAGEOFF]
Lloh14:
	adrp	x10, _SS_READY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SS_READY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh18:
	adrp	x10, _CARD_WP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CARD_WP@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh20:
	ldr	w9, [x10]
Lloh21:
	adrp	x10, _SS_WRPROT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SS_WRPROT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _CARD_DETECT1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CARD_DETECT1@GOTPAGEOFF]
Lloh26:
	adrp	x10, _CARD_DETECT2@GOTPAGE
Lloh27:
	ldr	x10, [x10, _CARD_DETECT2@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh30:
	adrp	x10, _SS_DETECT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _SS_DETECT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	bics	wzr, w9, w0
	csel	w9, w10, wzr, eq
	orr	w22, w8, w9
Lloh33:
	adrp	x8, _INT_GEN_CNT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INT_GEN_CNT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_exca_readb
Lloh36:
	adrp	x8, _CARD_TYPE_IO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CARD_TYPE_IO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh39:
	adrp	x8, _STSCHG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _STSCHG@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.2:
Lloh42:
	adrp	x8, _SS_STSCHG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SS_STSCHG@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh44:
	adrp	x8, _BV_DETECT_MASK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BV_DETECT_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh47:
	adrp	x9, _BV_DETECT_GOOD@GOTPAGE
Lloh48:
	ldr	x9, [x9, _BV_DETECT_GOOD@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.4:
Lloh50:
	adrp	x9, _BV_DETECT_WARN@GOTPAGE
Lloh51:
	ldr	x9, [x9, _BV_DETECT_WARN@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
Lloh53:
	adrp	x8, _SS_BATWARN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SS_BATWARN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh55:
	adrp	x8, _SS_BATDEAD@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SS_BATDEAD@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_8:
Lloh57:
	adrp	x8, _SKT_PRE_STATE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SKT_PRE_STATE@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cardbus_socket_readl
Lloh60:
	adrp	x8, _VOL_3V_CARD_DT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _VOL_3V_CARD_DT@GOTPAGEOFF]
Lloh62:
	adrp	x9, _SS_3VCARD@GOTPAGE
Lloh63:
	ldr	x9, [x9, _SS_3VCARD@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w9, wzr, w9, eq
Lloh66:
	adrp	x10, _VOL_XV_CARD_DT@GOTPAGE
Lloh67:
	ldr	x10, [x10, _VOL_XV_CARD_DT@GOTPAGEOFF]
	orr	w9, w9, w22
Lloh68:
	ldr	w10, [x10]
Lloh69:
	adrp	x11, _SS_XVCARD@GOTPAGE
Lloh70:
	ldr	x11, [x11, _SS_XVCARD@GOTPAGEOFF]
Lloh71:
	ldr	w11, [x11]
	tst	w10, w0
	csel	w11, wzr, w11, eq
	orr	w9, w9, w11
Lloh72:
	adrp	x11, _CB_CARD_DT@GOTPAGE
Lloh73:
	ldr	x11, [x11, _CB_CARD_DT@GOTPAGEOFF]
Lloh74:
	adrp	x12, _SS_CARDBUS@GOTPAGE
Lloh75:
	ldr	x12, [x12, _SS_CARDBUS@GOTPAGEOFF]
Lloh76:
	ldr	w11, [x11]
Lloh77:
	ldr	w12, [x12]
	tst	w11, w0
	csel	w11, wzr, w12, eq
Lloh78:
	adrp	x12, _VOL_YV_CARD_DT@GOTPAGE
Lloh79:
	ldr	x12, [x12, _VOL_YV_CARD_DT@GOTPAGEOFF]
	orr	w9, w9, w11
Lloh80:
	ldr	w11, [x12]
Lloh81:
	adrp	x12, _VOL_5V_CARD_DT@GOTPAGE
Lloh82:
	ldr	x12, [x12, _VOL_5V_CARD_DT@GOTPAGEOFF]
Lloh83:
	adrp	x13, _CCD20@GOTPAGE
Lloh84:
	ldr	x13, [x13, _CCD20@GOTPAGEOFF]
Lloh85:
	ldr	w12, [x12]
Lloh86:
	ldr	w13, [x13]
Lloh87:
	adrp	x14, _CCD10@GOTPAGE
Lloh88:
	ldr	x14, [x14, _CCD10@GOTPAGEOFF]
Lloh89:
	ldr	w14, [x14]
	orr	w8, w10, w8
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
Lloh90:
	adrp	x10, _SS_PENDING@GOTPAGE
Lloh91:
	ldr	x10, [x10, _SS_PENDING@GOTPAGEOFF]
Lloh92:
	ldr	w10, [x10]
	tst	w8, w0
	csel	w8, w10, wzr, eq
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh85
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh76
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh64
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_cardu_sockets,8,3              ; @cardu_sockets
	.comm	_IF_STATUS,4,2                  ; @IF_STATUS
	.comm	_CARD_PWR,4,2                   ; @CARD_PWR
	.comm	_SS_POWERON,4,2                 ; @SS_POWERON
	.comm	_READY,4,2                      ; @READY
	.comm	_SS_READY,4,2                   ; @SS_READY
	.comm	_CARD_WP,4,2                    ; @CARD_WP
	.comm	_SS_WRPROT,4,2                  ; @SS_WRPROT
	.comm	_CARD_DETECT1,4,2               ; @CARD_DETECT1
	.comm	_CARD_DETECT2,4,2               ; @CARD_DETECT2
	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
	.comm	_INT_GEN_CNT,4,2                ; @INT_GEN_CNT
	.comm	_CARD_TYPE_IO,4,2               ; @CARD_TYPE_IO
	.comm	_STSCHG,4,2                     ; @STSCHG
	.comm	_SS_STSCHG,4,2                  ; @SS_STSCHG
	.comm	_BV_DETECT_MASK,4,2             ; @BV_DETECT_MASK
	.comm	_BV_DETECT_GOOD,4,2             ; @BV_DETECT_GOOD
	.comm	_BV_DETECT_WARN,4,2             ; @BV_DETECT_WARN
	.comm	_SS_BATWARN,4,2                 ; @SS_BATWARN
	.comm	_SS_BATDEAD,4,2                 ; @SS_BATDEAD
	.comm	_SKT_PRE_STATE,4,2              ; @SKT_PRE_STATE
	.comm	_VOL_3V_CARD_DT,4,2             ; @VOL_3V_CARD_DT
	.comm	_SS_3VCARD,4,2                  ; @SS_3VCARD
	.comm	_VOL_XV_CARD_DT,4,2             ; @VOL_XV_CARD_DT
	.comm	_SS_XVCARD,4,2                  ; @SS_XVCARD
	.comm	_CB_CARD_DT,4,2                 ; @CB_CARD_DT
	.comm	_SS_CARDBUS,4,2                 ; @SS_CARDBUS
	.comm	_VOL_YV_CARD_DT,4,2             ; @VOL_YV_CARD_DT
	.comm	_VOL_5V_CARD_DT,4,2             ; @VOL_5V_CARD_DT
	.comm	_CCD20,4,2                      ; @CCD20
	.comm	_CCD10,4,2                      ; @CCD10
	.comm	_SS_PENDING,4,2                 ; @SS_PENDING
	.no_dead_strip	_cardu_get_status
.subsections_via_symbols
