	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cec_pin_update
_cec_pin_update:                        ## @cec_pin_update
	.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, %r15d
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r15d, (%rax)
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	movq	_CEC_NUM_PIN_EVENTS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jge	LBB0_9
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	$0, (%rbx)
	movq	_CEC_PIN_EVENT_FL_DROPPED@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_5:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	%r15d, (%rax,%rcx,4)
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %ecx
	movq	16(%rbx), %rax
	movq	40(%rbx), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movslq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_9:
	movl	$1, (%rbx)
	incl	28(%rbx)
	jmp	LBB0_10
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:
	movq	%rdx, 16(%rbx)
	movq	%r14, %rdi
	callq	_atomic_inc
LBB0_10:
	addq	$24, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_NUM_PIN_EVENTS,4,2         ## @CEC_NUM_PIN_EVENTS
	.comm	_CEC_PIN_EVENT_FL_DROPPED,4,2   ## @CEC_PIN_EVENT_FL_DROPPED
	.no_dead_strip	_cec_pin_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cec_pin_update
_cec_pin_update:                        ; @cec_pin_update
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbnz	w2, LBB0_3
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, w21
	b.ne	LBB0_3
; %bb.2:
	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
LBB0_3:
	str	w21, [x8]
	add	x20, x19, #32
	mov	x0, x20
	bl	_atomic_read
Lloh0:
	adrp	x22, _CEC_NUM_PIN_EVENTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CEC_NUM_PIN_EVENTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	str	wzr, [x19]
Lloh2:
	adrp	x8, _CEC_PIN_EVENT_FL_DROPPED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_PIN_EVENT_FL_DROPPED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_6:
	ldp	x8, x9, [x19, #8]
	str	w21, [x8, x9, lsl #2]
	bl	_ktime_get
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #16]
	str	w0, [x8, x9, lsl #2]
	add	x8, x9, #1
	ldrsw	x9, [x22]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_atomic_inc
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_8:
	add	x0, x19, #24
	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	_wake_up_interruptible
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_NUM_PIN_EVENTS,4,2         ; @CEC_NUM_PIN_EVENTS
	.comm	_CEC_PIN_EVENT_FL_DROPPED,4,2   ; @CEC_PIN_EVENT_FL_DROPPED
	.no_dead_strip	_cec_pin_update
.subsections_via_symbols
