	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii9234_writebm
_sii9234_writebm:                       ## @sii9234_writebm
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.1:
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r15
	movq	%r15, %rdi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	xorl	%ebx, %r14d
	andl	%r13d, %r14d
	xorl	%ebx, %r14d
	movq	%r15, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%ebx, %ecx
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
LBB0_5:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_6:
	movl	4(%r12), %edi
	movq	_sii9234_client_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx,4), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %r8d
	callq	_dev_err
	movl	%ebx, (%r12)
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writebm: %4s[0x%02x] <- 0x%02x\n"

	.comm	_sii9234_client_name,8,3        ## @sii9234_client_name
	.no_dead_strip	_sii9234_writebm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii9234_writebm
_sii9234_writebm:                       ; @sii9234_writebm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w23, [x0]
	cbnz	w23, LBB0_6
; %bb.1:
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x25, [x8, w1, sxtw #3]
	mov	x0, x25
	mov	x1, x2
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x25
	bl	_i2c_smbus_read_byte
	mov	x23, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	and	w8, w24, w21
	bic	w9, w23, w24
	orr	w21, w9, w8
	mov	x0, x25
	mov	x1, x20
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
	mov	x23, x0
	tbz	w0, #31, LBB0_6
	b	LBB0_5
LBB0_4:
	mov	x23, x0
LBB0_5:
	sxtw	x8, w22
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x9, _sii9234_client_name@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sii9234_client_name@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x21
	bl	_dev_err
	str	w23, [x19]
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writebm: %4s[0x%02x] <- 0x%02x\n"

	.comm	_sii9234_client_name,8,3        ; @sii9234_client_name
	.no_dead_strip	_sii9234_writebm
.subsections_via_symbols
