	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_vib_set
_pm8xxx_vib_set:                        ## @pm8xxx_vib_set
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	16(%rdi), %r12
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	4(%r15), %ebx
	movb	(%r12), %cl
	shll	%cl, %ebx
	andl	4(%r12), %ebx
	orl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	4(%r12), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %ebx
LBB0_3:
	movl	8(%r15), %edi
	movl	20(%r12), %esi
	movl	%ebx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	%ebx, (%r15)
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	movl	8(%r15), %edi
	movl	16(%r12), %esi
	cmoveq	%rax, %rdx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pm8xxx_vib_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_vib_set
_pm8xxx_vib_set:                        ; @pm8xxx_vib_set
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x22, [x0, #16]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w9, [x20, #4]
	ldp	w10, w11, [x22]
	lsl	w9, w9, w10
	and	w9, w9, w11
	orr	w21, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x22, #4]
	bic	w21, w8, w9
LBB0_3:
	ldr	w0, [x20, #8]
	ldr	w1, [x22, #20]
	mov	x2, x21
	bl	_regmap_write
	tbnz	w0, #31, LBB0_6
; %bb.4:
	str	w21, [x20]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	ldr	w1, [x22, #16]
	cmp	w19, #0
	csel	x2, xzr, x8, eq
	mov	x3, 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
	b	_regmap_update_bits
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pm8xxx_vib_set
.subsections_via_symbols
