	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_dst                      ## -- Begin function write_dst
	.p2align	4, 0x90
_write_dst:                             ## @write_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)
	movl	%edx, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	jns	LBB0_3
## %bb.1:
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$2, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_dst_error_recovery
	movl	(%r15), %edi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_dst_error_recovery
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r15, %rdi
	callq	_dst_error_bailout
	movl	$-1, %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing [ %*ph ]\n"

L_.str.1:                               ## @.str.1
	.asciz	"_write_dst error (err == %i, len == 0x%02x, b0 == 0x%02x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"RDC 8820 RESET\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_dst                      ; -- Begin function write_dst
	.p2align	2
_write_dst:                             ; @write_dst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x19, x0
	str	x1, [sp, #24]
	stp	w2, wzr, [sp, #32]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	x8, x2
	stp	x8, x1, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	w0, [x19]
	add	x1, sp, #24
	mov	w2, #1
	bl	_i2c_transfer
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #0
	tbz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	stp	x20, x8, [sp, #8]
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	x0, x19
	bl	_dst_error_recovery
	ldr	w0, [x19]
	add	x1, sp, #24
	mov	w2, #1
	bl	_i2c_transfer
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
	ldr	w8, [x21]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp, #8]
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	x0, x19
	bl	_dst_error_recovery
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	mov	x0, x19
	bl	_dst_error_bailout
	mov	w8, #-1
LBB0_4:
	mov	x0, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing [ %*ph ]\n"

l_.str.1:                               ; @.str.1
	.asciz	"_write_dst error (err == %i, len == 0x%02x, b0 == 0x%02x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"RDC 8820 RESET\n"

.subsections_via_symbols
