	.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	%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
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rsi, -88(%rbp)
	movq	%rdx, -80(%rbp)
	movl	$0, -72(%rbp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_NOTICE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rcx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	(%r15,%r12,8), %r8
	xorl	%edx, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dprintk
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_2
LBB0_3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_verbose@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	leaq	-88(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	movl	(%r12), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	(%r15), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.3(%rip), %rcx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %edx
	movl	%eax, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_error_recovery
	movl	(%rbx), %edi
	leaq	-88(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	movl	(%r14), %esi
	movq	(%r15), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edx
	movl	%eax, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_error_recovery
	movl	(%r12), %edi
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_error_bailout
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_NOTICE,4,2                 ## @DST_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing [ "

L_.str.1:                               ## @.str.1
	.asciz	"%02x "

L_.str.2:                               ## @.str.2
	.asciz	"]\n"

	.comm	_DST_INFO,4,2                   ## @DST_INFO
L_.str.3:                               ## @.str.3
	.asciz	"_write_dst error (err == %i, len == 0x%02x, b0 == 0x%02x)"

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

.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, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	stp	x1, x2, [sp, #24]
	str	wzr, [sp, #40]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	str	w8, [sp, #44]
Lloh0:
	adrp	x23, _verbose@GOTPAGE
Lloh1:
	ldr	x23, [x23, _verbose@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _DST_NOTICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DST_NOTICE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	bl	_dprintk
	cbz	x20, LBB0_3
; %bb.1:
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x25, x21
	mov	x26, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	ldr	x8, [x25], #8
	str	x8, [sp]
	mov	w2, #0
	mov	x3, x22
	bl	_dprintk
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #0
	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_7
; %bb.4:
	ldr	w8, [x23]
Lloh10:
	adrp	x22, _DST_INFO@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DST_INFO@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x9, [x21]
	stp	x20, x9, [sp, #8]
	str	x0, [sp]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x8
	mov	w2, #1
	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_6
; %bb.5:
	mov	w8, #0
	b	LBB0_7
LBB0_6:
	ldr	w8, [x23]
	ldr	w1, [x22]
	ldr	x9, [x21]
	stp	x20, x9, [sp, #8]
	str	x0, [sp]
Lloh14:
	adrp	x3, l_.str.3@PAGE
Lloh15:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x8
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_dst_error_recovery
	ldr	w0, [x23]
	ldr	w1, [x22]
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_dst_error_bailout
	mov	w8, #-1
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_NOTICE,4,2                 ; @DST_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing [ "

l_.str.1:                               ; @.str.1
	.asciz	"%02x "

l_.str.2:                               ; @.str.2
	.asciz	"]\n"

	.comm	_DST_INFO,4,2                   ; @DST_INFO
l_.str.3:                               ; @.str.3
	.asciz	"_write_dst error (err == %i, len == 0x%02x, b0 == 0x%02x)"

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

.subsections_via_symbols
