	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65010_output
_tps65010_output:                       ## @tps65010_output
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	cmpl	$3, %esi
	ja	LBB0_4
## %bb.1:
	callq	_gpiochip_get_data
	movl	(%rax), %eax
	btl	%ebx, %eax
	jae	LBB0_3
## %bb.2:
	incl	%ebx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_tps65010_set_gpio_out_value
	jmp	LBB0_10
LBB0_4:
	cmpl	$5, %ebx
	ja	LBB0_9
## %bb.5:
	addl	$-3, %ebx
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.7:
	movq	_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movl	%r14d, %edi
	callq	_tps65010_set_vib
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_ON@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_tps65010_set_led
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ON,4,2                         ## @ON
	.comm	_OFF,4,2                        ## @OFF
	.no_dead_strip	_tps65010_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65010_output
_tps65010_output:                       ; @tps65010_output
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	mov	x8, x0
	subs	w0, w1, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x0, x8
	bl	_gpiochip_get_data
	ldr	w8, [x0]
	lsr	w8, w8, w20
	tbz	w8, #0, LBB0_7
; %bb.2:
	add	w0, w20, #1
	mov	x1, x19
	bl	_tps65010_set_gpio_out_value
	b	LBB0_6
LBB0_3:
	cmp	w20, #5
	b.hi	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ON@GOTPAGEOFF]
Lloh2:
	adrp	x9, _OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OFF@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	bl	_tps65010_set_led
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_tps65010_set_vib
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ON,4,2                         ; @ON
	.comm	_OFF,4,2                        ; @OFF
	.no_dead_strip	_tps65010_output
.subsections_via_symbols
