	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_keys_attr_show_helper
_gpio_keys_attr_show_helper:            ## @gpio_keys_attr_show_helper
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%edx, %edi
	callq	_get_n_events_by_type
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_bitmap_zalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.2:
	movl	$16, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-16(%rcx,%r15), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	___set_bit
	movq	8(%r14), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%rax), %rcx
	addq	$24, %r15
	cmpq	%rcx, %r12
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	(%rcx,%r15), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -8(%rcx,%r15)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %r8
	callq	_scnprintf
	movq	%rax, %rbx
	movw	$10, (%r14,%rax)
	incq	%rbx
	movq	%r13, %rdi
	callq	_bitmap_free
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*pbl"

	.no_dead_strip	_gpio_keys_attr_show_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_keys_attr_show_helper
_gpio_keys_attr_show_helper:            ; @gpio_keys_attr_show_helper
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	mov	x0, x2
	bl	_get_n_events_by_type
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_zalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x24, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x9, x25]
	ldr	w0, [x8]
	mov	x1, x20
	bl	___set_bit
	ldr	x8, [x24, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x9, [x8]
	add	x25, x25, #24
	cmp	x26, x9
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	add	x10, x9, x25
	ldr	x10, [x10, #16]
	ldr	w10, [x10]
	cmp	w10, w23
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w22, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x9, x25
	ldr	w10, [x10, #8]
	cbnz	w10, LBB0_3
	b	LBB0_4
LBB0_8:
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	bl	_scnprintf
	add	x21, x0, #1
	mov	w8, #10
	strh	w8, [x19, x0]
	mov	x0, x20
	bl	_bitmap_free
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	neg	x21, x8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*pbl"

	.no_dead_strip	_gpio_keys_attr_show_helper
.subsections_via_symbols
