	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function or51211_setmode
LCPI0_0:
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_or51211_setmode:                       ## @or51211_setmode
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	callq	*8(%rax)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_run_buf@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_i2c_writebytes
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	$10, %edi
	callq	_msleep
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_i2c_writebytes
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movl	$10, %edi
	callq	_msleep
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_cmd_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movl	$3, %ecx
	callq	_i2c_writebytes
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,0,3,0]
	movaps	%xmm0, -80(%rbp)
	movl	$20, %edi
	callq	_msleep
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$3, %ecx
	callq	_i2c_writebytes
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_warn
LBB0_9:
	movl	$3, %edi
	callq	_msleep
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_i2c_readbytes
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
LBB0_2:
	callq	_pr_warn
	movl	$-1, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.5(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_run_buf,8,3                    ## @run_buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error 1\n"

L_.str.1:                               ## @.str.1
	.asciz	"error 2\n"

	.comm	_cmd_buf,8,3                    ## @cmd_buf
L_.str.2:                               ## @.str.2
	.asciz	"error 3\n"

L_.str.3:                               ## @.str.3
	.asciz	"error 5\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"rec status %02x %02x\n"

	.no_dead_strip	_or51211_setmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function or51211_setmode
lCPI0_0:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_or51211_setmode:                       ; @or51211_setmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	blr	x8
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _run_buf@GOTPAGE
Lloh4:
	ldr	x20, [x20, _run_buf@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x0, x19
	mov	w3, #2
	bl	_i2c_writebytes
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_2:
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	x2, [x20]
	mov	x0, x19
	mov	w3, #2
	bl	_i2c_writebytes
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_4:
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _cmd_buf@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cmd_buf@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w3, #3
	bl	_i2c_writebytes
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x20, sp
	mov	x2, sp
	mov	x0, x19
	mov	w3, #3
	bl	_i2c_writebytes
	cbz	x0, LBB0_8
; %bb.7:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_warn
LBB0_8:
	mov	w0, #3
	bl	_msleep
	ldr	x8, [x19]
	ldr	w1, [x8]
	add	x2, x20, #40
	mov	x0, x19
	mov	w3, #2
	bl	_i2c_readbytes
	cbz	x0, LBB0_13
; %bb.9:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_10:
	bl	_pr_warn
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldp	w1, w2, [sp, #40]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_run_buf,8,3                    ; @run_buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error 1\n"

l_.str.1:                               ; @.str.1
	.asciz	"error 2\n"

	.comm	_cmd_buf,8,3                    ; @cmd_buf
l_.str.2:                               ; @.str.2
	.asciz	"error 3\n"

l_.str.3:                               ; @.str.3
	.asciz	"error 5\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"rec status %02x %02x\n"

	.no_dead_strip	_or51211_setmode
.subsections_via_symbols
