	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8411b_extra_init_hw
_rtl8411b_extra_init_hw:                ## @rtl8411b_extra_init_hw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rtsx_pci_init_cmd
	movq	%rbx, %rdi
	callq	_rtl8411b_is_qfn48
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_WRITE_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CARD_PULL_CTL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$255, %ecx
	movl	$245, %r8d
	callq	_rtsx_pci_add_cmd
LBB0_2:
	movq	_WRITE_REG_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SD30_DRIVE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movq	%rbx, %rdi
	movl	$255, %ecx
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_CD_PAD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CD_DISABLE_MASK@GOTPCREL(%rip), %rax
	movq	_CD_AUTO_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CD_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_FUNC_FORCE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %ecx
	xorl	%r8d, %r8d
	callq	_rtsx_pci_add_cmd
	movq	%rbx, %rdi
	movl	$100, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtsx_pci_send_cmd              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_REG_CMD,4,2              ## @WRITE_REG_CMD
	.comm	_CARD_PULL_CTL3,4,2             ## @CARD_PULL_CTL3
	.comm	_SD30_DRIVE_SEL,4,2             ## @SD30_DRIVE_SEL
	.comm	_CD_PAD_CTL,4,2                 ## @CD_PAD_CTL
	.comm	_CD_DISABLE_MASK,4,2            ## @CD_DISABLE_MASK
	.comm	_CD_AUTO_DISABLE,4,2            ## @CD_AUTO_DISABLE
	.comm	_CD_ENABLE,4,2                  ## @CD_ENABLE
	.comm	_FUNC_FORCE_CTL,4,2             ## @FUNC_FORCE_CTL
	.no_dead_strip	_rtl8411b_extra_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8411b_extra_init_hw
_rtl8411b_extra_init_hw:                ; @rtl8411b_extra_init_hw
	.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
	mov	x19, x0
	bl	_rtsx_pci_init_cmd
	mov	x0, x19
	bl	_rtl8411b_is_qfn48
Lloh0:
	adrp	x20, _WRITE_REG_CMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WRITE_REG_CMD@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _CARD_PULL_CTL3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARD_PULL_CTL3@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #255
	mov	w4, #245
	bl	_rtsx_pci_add_cmd
LBB0_2:
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _SD30_DRIVE_SEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SD30_DRIVE_SEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w4, [x19]
	mov	x0, x19
	mov	w3, #255
	bl	_rtsx_pci_add_cmd
Lloh8:
	adrp	x8, _CD_PAD_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CD_PAD_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _CD_DISABLE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CD_DISABLE_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x9, _CD_AUTO_DISABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CD_AUTO_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh17:
	adrp	x8, _CD_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CD_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _FUNC_FORCE_CTL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FUNC_FORCE_CTL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #6
	mov	w4, #0
	bl	_rtsx_pci_add_cmd
	mov	x0, x19
	mov	w1, #100
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_send_cmd
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_REG_CMD,4,2              ; @WRITE_REG_CMD
	.comm	_CARD_PULL_CTL3,4,2             ; @CARD_PULL_CTL3
	.comm	_SD30_DRIVE_SEL,4,2             ; @SD30_DRIVE_SEL
	.comm	_CD_PAD_CTL,4,2                 ; @CD_PAD_CTL
	.comm	_CD_DISABLE_MASK,4,2            ; @CD_DISABLE_MASK
	.comm	_CD_AUTO_DISABLE,4,2            ; @CD_AUTO_DISABLE
	.comm	_CD_ENABLE,4,2                  ; @CD_ENABLE
	.comm	_FUNC_FORCE_CTL,4,2             ; @FUNC_FORCE_CTL
	.no_dead_strip	_rtl8411b_extra_init_hw
.subsections_via_symbols
