	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cardu_init
_cardu_init:                            ## @cardu_init
	.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	_cardu_sockets@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%edi, %eax
	leaq	(%rax,%rax,2), %rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	movq	16(%r15,%rbx), %rdi
	callq	_cardu_pciregs_init
	movq	_GLO_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_exca_writeb
	movq	_SS_CAP_PCCARD@GOTPCREL(%rip), %rax
	movq	_SS_CAP_PAGE_REGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 24(%r15,%rbx)
	movq	$0, 40(%r15,%rbx)
	movl	$4096, 28(%r15,%rbx)            ## imm = 0x1000
	movq	16(%r15,%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15,%rbx)
	movq	$0, 8(%r15,%rbx)
	movl	(%r15,%rbx), %edi
	callq	_spin_lock_init
	movq	_CARD_DT_EN@GOTPCREL(%rip), %rax
	movq	_RDY_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_CARD_SCI@GOTPCREL(%rip), %rax
	movq	_BAT_WAR_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_BAT_DEAD_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_exca_writeb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cardu_sockets,8,3              ## @cardu_sockets
	.comm	_GLO_CNT,4,2                    ## @GLO_CNT
	.comm	_SS_CAP_PCCARD,4,2              ## @SS_CAP_PCCARD
	.comm	_SS_CAP_PAGE_REGS,4,2           ## @SS_CAP_PAGE_REGS
	.comm	_CARD_SCI,4,2                   ## @CARD_SCI
	.comm	_CARD_DT_EN,4,2                 ## @CARD_DT_EN
	.comm	_RDY_EN,4,2                     ## @RDY_EN
	.comm	_BAT_WAR_EN,4,2                 ## @BAT_WAR_EN
	.comm	_BAT_DEAD_EN,4,2                ## @BAT_DEAD_EN
	.no_dead_strip	_cardu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cardu_init
_cardu_init:                            ; @cardu_init
	.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
Lloh0:
	adrp	x8, _cardu_sockets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardu_sockets@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #48
	umaddl	x19, w0, w9, x8
	ldr	x0, [x19, #16]
	bl	_cardu_pciregs_init
Lloh3:
	adrp	x8, _GLO_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLO_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_exca_writeb
Lloh6:
	adrp	x8, _SS_CAP_PCCARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SS_CAP_PCCARD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SS_CAP_PAGE_REGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SS_CAP_PAGE_REGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #24]
	orr	w8, w8, w9
	str	xzr, [x19, #40]
	mov	w9, #4096
	stp	w8, w9, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	bl	_spin_lock_init
Lloh12:
	adrp	x8, _CARD_SCI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CARD_SCI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _CARD_DT_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CARD_DT_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _RDY_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RDY_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _BAT_WAR_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BAT_WAR_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _BAT_DEAD_EN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BAT_DEAD_EN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_exca_writeb
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cardu_sockets,8,3              ; @cardu_sockets
	.comm	_GLO_CNT,4,2                    ; @GLO_CNT
	.comm	_SS_CAP_PCCARD,4,2              ; @SS_CAP_PCCARD
	.comm	_SS_CAP_PAGE_REGS,4,2           ; @SS_CAP_PAGE_REGS
	.comm	_CARD_SCI,4,2                   ; @CARD_SCI
	.comm	_CARD_DT_EN,4,2                 ; @CARD_DT_EN
	.comm	_RDY_EN,4,2                     ; @RDY_EN
	.comm	_BAT_WAR_EN,4,2                 ; @BAT_WAR_EN
	.comm	_BAT_DEAD_EN,4,2                ; @BAT_DEAD_EN
	.no_dead_strip	_cardu_init
.subsections_via_symbols
