	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asb100_write_value
_asb100_write_value:                    ## @asb100_write_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	%r12d, %edx
	shrl	$8, %edx
	andl	$15, %edx
	cmpl	$2, %edx
	jbe	LBB0_1
## %bb.10:
	movq	_ASB100_REG_BANK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_i2c_smbus_write_byte_data
	movzbl	%r12b, %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_1:
	testl	%edx, %edx
	je	LBB0_9
## %bb.2:
	movq	8(%r15), %rax
	decl	%edx
	movq	(%rax,%rdx,8), %rbx
	cmpb	$85, %r12b
	je	LBB0_8
## %bb.3:
	cmpb	$83, %r12b
	je	LBB0_6
## %bb.4:
	cmpb	$82, %r12b
	jne	LBB0_12
## %bb.5:
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	jmp	LBB0_11
LBB0_9:
	movzbl	%r12b, %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
LBB0_11:
	callq	_i2c_smbus_write_byte_data
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_8:
	movl	%r14d, %edi
	callq	_swab16
	movq	%rbx, %rdi
	movl	$3, %esi
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, %edi
	callq	_swab16
	movq	%rbx, %rdi
	movl	$2, %esi
LBB0_7:
	movl	%eax, %edx
	callq	_i2c_smbus_write_word_data
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ASB100_REG_BANK,4,2            ## @ASB100_REG_BANK
	.no_dead_strip	_asb100_write_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asb100_write_value
_asb100_write_value:                    ; @asb100_write_value
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	bl	_mutex_lock
	ubfx	w2, w22, #8, #4
	cmp	w2, #2
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x23, _ASB100_REG_BANK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ASB100_REG_BANK@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	and	w1, w22, #0xff
	and	w2, w20, #0xff
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #0
	b	LBB0_8
LBB0_2:
	cbz	w2, LBB0_7
; %bb.3:
	ldr	x8, [x19, #8]
	sub	w9, w2, #1
	ldr	x21, [x8, w9, uxtw #3]
	and	w8, w22, #0xff
	cmp	w8, #85
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #83
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #82
	b.ne	LBB0_9
; %bb.6:
	and	w2, w20, #0xff
	mov	x0, x21
	mov	w1, #1
	b	LBB0_8
LBB0_7:
	and	w1, w22, #0xff
	and	w2, w20, #0xff
	mov	x0, x21
LBB0_8:
	bl	_i2c_smbus_write_byte_data
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_10:
	mov	x0, x20
	bl	_swab16
	mov	x2, x0
	mov	x0, x21
	mov	w1, #3
	bl	_i2c_smbus_write_word_data
	b	LBB0_9
LBB0_11:
	mov	x0, x20
	bl	_swab16
	mov	x2, x0
	mov	x0, x21
	mov	w1, #2
	bl	_i2c_smbus_write_word_data
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ASB100_REG_BANK,4,2            ; @ASB100_REG_BANK
	.no_dead_strip	_asb100_write_value
.subsections_via_symbols
