	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bigben_get_led
_bigben_get_led:                        ## @bigben_get_led
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_to_hid_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_NUM_LEDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.2:
	movq	8(%rax), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdx,%rdi,8)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_3
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
LBB0_7:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.5:
	movq	_LED_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no device data\n"

	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_NUM_LEDS,4,2                   ## @NUM_LEDS
	.comm	_LED_ON,4,2                     ## @LED_ON
	.no_dead_strip	_bigben_get_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bigben_get_led
_bigben_get_led:                        ; @bigben_get_led
	.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, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_to_hid_device
	mov	x20, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _NUM_LEDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_LEDS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x8, #0
	ldr	x10, [x0, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	cmp	x11, x19
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_err
LBB0_6:
Lloh5:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w19, [x0]
	mov	x0, x8
	bl	_BIT
Lloh7:
	adrp	x8, _LED_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LED_ON@GOTPAGEOFF]
Lloh9:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
	tst	w0, w19
	csel	x8, x9, x8, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no device data\n"

	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_NUM_LEDS,4,2                   ; @NUM_LEDS
	.comm	_LED_ON,4,2                     ; @LED_ON
	.no_dead_strip	_bigben_get_led
.subsections_via_symbols
