	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a16_set_tone
_mb86a16_set_tone:                      ## @mb86a16_set_tone
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	cmpl	$129, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_12
## %bb.2:
	movq	_MB86A16_TONEOUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mb86a16_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	_MB86A16_DCC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MB86A16_DCC1_DISTA@GOTPCREL(%rip), %rax
	movq	_MB86A16_DCC1_CTOE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mb86a16_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	_MB86A16_DCCOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MB86A16_DCCOUT_DISEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mb86a16_write
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_9
LBB0_5:
	movq	_MB86A16_TONEOUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_mb86a16_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	_MB86A16_DCC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MB86A16_DCC1_DISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mb86a16_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	_MB86A16_DCCOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mb86a16_write
	testl	%eax, %eax
	jns	LBB0_11
LBB0_9:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB86A16_TONEOUT2,4,2           ## @MB86A16_TONEOUT2
	.comm	_MB86A16_DCC1,4,2               ## @MB86A16_DCC1
	.comm	_MB86A16_DCC1_DISTA,4,2         ## @MB86A16_DCC1_DISTA
	.comm	_MB86A16_DCC1_CTOE,4,2          ## @MB86A16_DCC1_CTOE
	.comm	_MB86A16_DCCOUT,4,2             ## @MB86A16_DCCOUT
	.comm	_MB86A16_DCCOUT_DISEN,4,2       ## @MB86A16_DCCOUT_DISEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_mb86a16_set_tone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb86a16_set_tone
_mb86a16_set_tone:                      ; @mb86a16_set_tone
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cmp	w1, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_10
; %bb.2:
Lloh0:
	adrp	x8, _MB86A16_TONEOUT2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB86A16_TONEOUT2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mb86a16_write
	tbnz	w0, #31, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _MB86A16_DCC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB86A16_DCC1@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MB86A16_DCC1_DISTA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MB86A16_DCC1_DISTA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _MB86A16_DCC1_CTOE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MB86A16_DCC1_CTOE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mb86a16_write
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _MB86A16_DCCOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MB86A16_DCCOUT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MB86A16_DCCOUT_DISEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MB86A16_DCCOUT_DISEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mb86a16_write
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
Lloh18:
	adrp	x8, _MB86A16_TONEOUT2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MB86A16_TONEOUT2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_mb86a16_write
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _MB86A16_DCC1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MB86A16_DCC1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _MB86A16_DCC1_DISTA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MB86A16_DCC1_DISTA@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mb86a16_write
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _MB86A16_DCCOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MB86A16_DCCOUT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mb86a16_write
	mov	x8, x0
	mov	w0, #0
	tbz	w8, #31, LBB0_12
LBB0_9:
Lloh30:
	adrp	x8, _verbose@GOTPAGE
Lloh31:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x3, l_.str@PAGE
Lloh37:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh38:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MB86A16_TONEOUT2,4,2           ; @MB86A16_TONEOUT2
	.comm	_MB86A16_DCC1,4,2               ; @MB86A16_DCC1
	.comm	_MB86A16_DCC1_DISTA,4,2         ; @MB86A16_DCC1_DISTA
	.comm	_MB86A16_DCC1_CTOE,4,2          ; @MB86A16_DCC1_CTOE
	.comm	_MB86A16_DCCOUT,4,2             ; @MB86A16_DCCOUT
	.comm	_MB86A16_DCCOUT_DISEN,4,2       ; @MB86A16_DCCOUT_DISEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_mb86a16_set_tone
.subsections_via_symbols
