	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uinput_rep_leds                ## -- Begin function uinput_rep_leds
	.p2align	4, 0x90
_uinput_rep_leds:                       ## @uinput_rep_leds
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r15
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_uinput_get_rcpt_mask
	movq	_EVDEV_RCPT_HW_KBD@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_8
## %bb.1:
	movq	_led_codes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_nitems
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	(%rbx), %rdi
	callq	_nitems
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r12d, %r13d
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EV_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %edx
	xorl	%ecx, %ecx
	btl	%r12d, %r14d
	setb	%cl
	movq	%r15, %rdi
	callq	_uinput_write_event
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	$-1, %rbx
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDEV_RCPT_HW_KBD,8,3          ## @EVDEV_RCPT_HW_KBD
	.comm	_led_codes,8,3                  ## @led_codes
	.comm	_EV_LED,4,2                     ## @EV_LED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uinput_rep_leds                ; -- Begin function uinput_rep_leds
	.p2align	2
_uinput_rep_leds:                       ; @uinput_rep_leds
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	bl	_uinput_get_rcpt_mask
Lloh0:
	adrp	x8, _EVDEV_RCPT_HW_KBD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVDEV_RCPT_HW_KBD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_7
; %bb.1:
Lloh3:
	adrp	x22, _led_codes@GOTPAGE
Lloh4:
	ldr	x22, [x22, _led_codes@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_nitems
	cbz	x0, LBB0_8
; %bb.2:
	mov	x23, #0
Lloh5:
	adrp	x24, _EV_LED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EV_LED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_nitems
	cmp	x23, x0
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w19, w23
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x24]
	ldr	x8, [x22]
	ldr	w2, [x8, x23, lsl #2]
	lsr	w8, w20, w23
	and	w3, w8, #0x1
	mov	x0, x21
	bl	_uinput_write_event
	tbz	x0, #63, LBB0_3
; %bb.6:
	mov	x0, #-1
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDEV_RCPT_HW_KBD,8,3          ; @EVDEV_RCPT_HW_KBD
	.comm	_led_codes,8,3                  ; @led_codes
	.comm	_EV_LED,4,2                     ; @EV_LED
.subsections_via_symbols
