	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl6421_set_tone
_isl6421_set_tone:                      ## @isl6421_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
	subq	$32, %rsp
	movq	(%rdi), %rax
	movl	$4, -24(%rbp)
	leaq	8(%rax), %rcx
	movq	%rcx, -16(%rbp)
	movl	$0, -8(%rbp)
	movl	16(%rax), %edx
	movl	%edx, -4(%rbp)
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_3
## %bb.2:
	movq	_ISL6421_ENT1@GOTPCREL(%rip), %rsi
	movl	(%rcx), %edx
	orl	(%rsi), %edx
	jmp	LBB0_5
LBB0_4:
	movq	_ISL6421_ENT1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	(%rcx), %edx
LBB0_5:
	orl	12(%rax), %edx
	andl	4(%rax), %edx
	movl	%edx, 8(%rax)
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	cmpl	$1, %ecx
	cmovel	%edx, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL6421_ENT1,4,2               ## @ISL6421_ENT1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_isl6421_set_tone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl6421_set_tone
_isl6421_set_tone:                      ; @isl6421_set_tone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	mov	w9, #4
	str	w9, [sp, #8]
	add	x9, x8, #8
	str	x9, [sp, #16]
	str	wzr, [sp, #24]
	ldr	w10, [x8, #16]
	str	w10, [sp, #28]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x10, _ISL6421_ENT1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ISL6421_ENT1@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	w9, [x9]
	orr	w9, w9, w10
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x10, _ISL6421_ENT1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ISL6421_ENT1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldr	w9, [x9]
	bic	w9, w9, w10
LBB0_4:
	ldr	w10, [x8, #12]
	orr	w9, w10, w9
	ldp	w0, w10, [x8]
	and	w9, w10, w9
	str	w9, [x8, #8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #1
	csneg	w0, wzr, w8, eq
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL6421_ENT1,4,2               ; @ISL6421_ENT1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_isl6421_set_tone
.subsections_via_symbols
