	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_dst                       ## -- Begin function read_dst
	.p2align	4, 0x90
_read_dst:                              ## @read_dst
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, -80(%rbp)
	movl	%edx, -72(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	(%rdi), %edi
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	jns	LBB0_3
## %bb.1:
	movq	_verbose@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_dst_error_recovery
	movl	(%r15), %edi
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r8d
	leaq	L_.str.2(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$2, %r13d
	jl	LBB0_8
## %bb.4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %ebx
	movl	$1, %r13d
	leaq	L_.str.3(%rip), %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	(%r15,%r13,4), %r8d
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dprintk
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_5
## %bb.6:
	xorl	%r15d, %r15d
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	movq	_verbose@GOTPCREL(%rip), %r14
	jb	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	L_.str.4(%rip), %rcx
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_8
LBB0_2:
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_dst_error_recovery
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_dst_error_bailout
	movl	$-1, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_INFO,4,2                   ## @DST_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read_dst error (err == %i, len == 0x%02x, b0 == 0x%02x)"

L_.str.1:                               ## @.str.1
	.asciz	"RDC 8820 RESET"

	.comm	_DST_DEBUG,4,2                  ## @DST_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"reply is 0x%x"

L_.str.3:                               ## @.str.3
	.asciz	" 0x%x"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_dst                       ; -- Begin function read_dst
	.p2align	2
_read_dst:                              ; @read_dst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x21, x1
	mov	x20, x0
	str	x1, [sp, #24]
Lloh0:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w2, w8, [sp, #32]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	w0, [x0]
	add	x1, sp, #24
	mov	w2, #1
	bl	_i2c_transfer
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x22, _verbose@GOTPAGE
Lloh4:
	ldr	x22, [x22, _verbose@GOTPAGEOFF]
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _DST_INFO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DST_INFO@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w9, [x21]
	stp	x19, x9, [sp, #8]
	str	x0, [sp]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x8
	mov	w2, #1
	bl	_dprintk
	mov	x0, x20
	bl	_dst_error_recovery
	ldr	w0, [x20]
	add	x1, sp, #24
	mov	w2, #1
	bl	_i2c_transfer
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_9
LBB0_2:
	ldr	w0, [x22]
Lloh9:
	adrp	x23, _DST_DEBUG@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DST_DEBUG@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	cmp	w19, #2
	b.lt	LBB0_7
; %bb.3:
	mov	w8, w19
	add	x21, x21, #4
	sub	x24, x8, #1
Lloh13:
	adrp	x20, l_.str.3@PAGE
Lloh14:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w1, [x23]
	ldr	w8, [x21], #4
	str	x8, [sp]
	mov	w2, #0
	mov	x3, x20
	bl	_dprintk
	subs	x24, x24, #1
	b.ne	LBB0_4
; %bb.5:
	cmp	w19, #2
	b.lo	LBB0_7
; %bb.6:
	ldr	w0, [x22]
	ldr	w1, [x23]
Lloh15:
	adrp	x3, l_.str.4@PAGE
Lloh16:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w2, #0
	bl	_dprintk
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	w8, [x22]
	ldr	w1, [x23]
	ldr	w9, [x21]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x9, [sp, #8]
	str	x0, [sp]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x8
	mov	w2, #1
	bl	_dprintk
	mov	x0, x20
	bl	_dst_error_recovery
	ldr	w0, [x22]
	ldr	w1, [x23]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x20
	bl	_dst_error_bailout
	mov	w0, #-1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_INFO,4,2                   ; @DST_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read_dst error (err == %i, len == 0x%02x, b0 == 0x%02x)"

l_.str.1:                               ; @.str.1
	.asciz	"RDC 8820 RESET"

	.comm	_DST_DEBUG,4,2                  ; @DST_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"reply is 0x%x"

l_.str.3:                               ; @.str.3
	.asciz	" 0x%x"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

.subsections_via_symbols
