	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxav3_reset
_pxav3_reset:                           ## @pxav3_reset
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_mmc_dev
	movl	%eax, %edi
	callq	_to_platform_device
	movq	(%rax), %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sdhci_reset
	movq	_SDHCI_RESET_ALL@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.4:
	movq	_SD_CLOCK_BURST_SIZE_SETUP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readw
	movl	(%r15), %edi
	movq	_SDCLK_DELAY_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	movq	_SDCLK_DELAY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdi
	movq	_SDCLK_SEL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writew                         ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_RESET_ALL,8,3            ## @SDHCI_RESET_ALL
	.comm	_SD_CLOCK_BURST_SIZE_SETUP,8,3  ## @SD_CLOCK_BURST_SIZE_SETUP
	.comm	_SDCLK_DELAY_MASK,4,2           ## @SDCLK_DELAY_MASK
	.comm	_SDCLK_DELAY_SHIFT,4,2          ## @SDCLK_DELAY_SHIFT
	.comm	_SDCLK_SEL,4,2                  ## @SDCLK_SEL
	.no_dead_strip	_pxav3_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxav3_reset
_pxav3_reset:                           ; @pxav3_reset
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_mmc_dev
	bl	_to_platform_device
	ldr	x21, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_reset
Lloh0:
	adrp	x8, _SDHCI_RESET_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_RESET_ALL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _SD_CLOCK_BURST_SIZE_SETUP@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SD_CLOCK_BURST_SIZE_SETUP@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readw
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _SDCLK_DELAY_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDCLK_DELAY_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	x8, x8, x9
Lloh8:
	adrp	x9, _SDCLK_DELAY_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDCLK_DELAY_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	x8, x8, x9
Lloh11:
	adrp	x9, _SDCLK_SEL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDCLK_SEL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w9, w9, w0
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	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
	b	_writew
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_RESET_ALL,8,3            ; @SDHCI_RESET_ALL
	.comm	_SD_CLOCK_BURST_SIZE_SETUP,8,3  ; @SD_CLOCK_BURST_SIZE_SETUP
	.comm	_SDCLK_DELAY_MASK,4,2           ; @SDCLK_DELAY_MASK
	.comm	_SDCLK_DELAY_SHIFT,4,2          ; @SDCLK_DELAY_SHIFT
	.comm	_SDCLK_SEL,4,2                  ; @SDCLK_SEL
	.no_dead_strip	_pxav3_reset
.subsections_via_symbols
