	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl4531_write_raw
_tsl4531_write_raw:                     ## @tsl4531_write_raw
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, %r12d
	callq	_iio_priv
	cmpq	$128, %rbx
	jne	LBB0_11
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_2
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %r15
	cmpl	$100000, %r14d                  ## imm = 0x186A0
	je	LBB0_7
## %bb.3:
	cmpl	$400000, %r14d                  ## imm = 0x61A80
	je	LBB0_4
## %bb.5:
	cmpl	$200000, %r14d                  ## imm = 0x30D40
	jne	LBB0_11
## %bb.6:
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_7:
	movl	$2, %r14d
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	8(%r15), %edi
	movq	_TSL4531_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movl	%r14d, (%r15)
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TSL4531_CONFIG,4,2             ## @TSL4531_CONFIG
	.no_dead_strip	_tsl4531_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl4531_write_raw
_tsl4531_write_raw:                     ; @tsl4531_write_raw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	bl	_iio_priv
	cmp	x22, #128
	b.ne	LBB0_2
; %bb.1:
	cbz	w21, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	mov	w8, #34464
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.5:
	mov	w8, #6784
	movk	w8, #6, lsl #16
	cmp	w20, w8
	b.eq	LBB0_9
; %bb.6:
	mov	w8, #3392
	movk	w8, #3, lsl #16
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.7:
	mov	w20, #1
	b	LBB0_10
LBB0_8:
	mov	w20, #2
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _TSL4531_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSL4531_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_i2c_smbus_write_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
; %bb.11:
	str	w20, [x19]
LBB0_12:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TSL4531_CONFIG,4,2             ; @TSL4531_CONFIG
	.no_dead_strip	_tsl4531_write_raw
.subsections_via_symbols
