	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps65010_set_vib               ## -- Begin function tps65010_set_vib
	.p2align	4, 0x90
_tps65010_set_vib:                      ## @tps65010_set_vib
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_the_tps@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	callq	_mutex_lock
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movq	_TPS_VDCDC2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_i2c_smbus_read_byte_data
                                        ## kill: def $eax killed $eax def $rax
	andl	$-3, %eax
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	setne	%cl
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rdx, %rbx
	leal	(%rax,%rcx,2), %edx
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r14d
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_pr_debug
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_tps,8,3                    ## @the_tps
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TPS_VDCDC2,4,2                 ## @TPS_VDCDC2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: vibrator %s\n"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps65010_set_vib               ; -- Begin function tps65010_set_vib
	.p2align	2
_tps65010_set_vib:                      ; @tps65010_set_vib
	.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, x0
Lloh0:
	adrp	x21, _the_tps@GOTPAGE
Lloh1:
	ldr	x21, [x21, _the_tps@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_mutex_lock
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
Lloh2:
	adrp	x20, _TPS_VDCDC2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TPS_VDCDC2@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_i2c_smbus_read_byte_data
	mov	x2, x0
	cmp	w19, #0
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cset	w10, ne
	csel	x19, x9, x8, eq
	bfi	w2, w10, #1, #1
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	ldr	w1, [x20]
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
Lloh8:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_debug
	ldr	x0, [x21]
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_the_tps,8,3                    ; @the_tps
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TPS_VDCDC2,4,2                 ; @TPS_VDCDC2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: vibrator %s\n"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

.subsections_via_symbols
