	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1x00_assabet_add
_ucb1x00_assabet_add:                   ## @ucb1x00_assabet_add
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	leaq	_ucb1x00_assabet_add.buttons(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$336, %edx                      ## imm = 0x150
	callq	_memset
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	_ucb1x00_assabet_add.buttons+48(%rip), %rbx
	xorl	%r14d, %r14d
	movq	_EV_KEY@GOTPCREL(%rip), %r15
	leaq	_ucb1x00_assabet_add.buttons(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BTN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r14, %rax
	movq	%rax, (%rbx)
	movq	8(%r13), %rax
	addq	%r14, %rax
	movq	%rax, -8(%rbx)
	movl	(%r15), %eax
	movl	%eax, -16(%rbx)
	movl	$1, -48(%rbx)
	incq	%r14
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$56, %rbx
	cmpq	%rax, %r14
	jb	LBB0_2
LBB0_3:
	leaq	_ucb1x00_assabet_add.buttons(%rip), %rdi
	movq	%rdi, -80(%rbp)
	callq	_ARRAY_SIZE
	movl	%eax, -100(%rbp)
	movl	$50, -96(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -88(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-104(%rbp), %rcx
	movq	%r13, %rdi
	movl	$-1, %edx
	movl	$56, %r8d
	callq	_platform_device_register_data
	movq	%rax, %r15
	movq	_dev_attr_vbatt@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_create_file
	movq	_dev_attr_vcharger@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_create_file
	movq	_dev_attr_batt_temp@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_device_create_file
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ucb1x00_assabet_add.buttons,336,4 ## @ucb1x00_assabet_add.buttons
	.comm	_BTN_0,8,3                      ## @BTN_0
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucb1x00"

L_.str.1:                               ## @.str.1
	.asciz	"gpio-keys"

	.comm	_dev_attr_vbatt,4,2             ## @dev_attr_vbatt
	.comm	_dev_attr_vcharger,4,2          ## @dev_attr_vcharger
	.comm	_dev_attr_batt_temp,4,2         ## @dev_attr_batt_temp
	.no_dead_strip	_ucb1x00_assabet_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1x00_assabet_add
_ucb1x00_assabet_add:                   ; @ucb1x00_assabet_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _ucb1x00_assabet_add.buttons@PAGE
Lloh1:
	add	x21, x21, _ucb1x00_assabet_add.buttons@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	mov	w2, #336
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	x0, x21
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _ucb1x00_assabet_add.buttons@PAGE+48
Lloh3:
	add	x24, x24, _ucb1x00_assabet_add.buttons@PAGEOFF+48
Lloh4:
	adrp	x25, _BTN_0@GOTPAGE
Lloh5:
	ldr	x25, [x25, _BTN_0@GOTPAGEOFF]
Lloh6:
	adrp	x26, _EV_KEY@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EV_KEY@GOTPAGEOFF]
	mov	w27, #1
Lloh8:
	adrp	x22, _ucb1x00_assabet_add.buttons@PAGE
Lloh9:
	add	x22, x22, _ucb1x00_assabet_add.buttons@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x23, x8
	str	x8, [x24]
	ldr	x8, [x20, #8]
	add	x8, x23, x8
	stur	x8, [x24, #-8]
	ldr	w8, [x26]
	stur	w8, [x24, #-16]
	stur	w27, [x24, #-48]
	add	x23, x23, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	add	x24, x24, #56
	cmp	x23, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	str	x21, [sp, #32]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	w8, #50
	stp	w0, w8, [sp, #12]
Lloh10:
	adrp	x8, l_.str@PAGE
Lloh11:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #-1
	mov	w4, #56
	bl	_platform_device_register_data
	mov	x21, x0
Lloh14:
	adrp	x1, _dev_attr_vbatt@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_vbatt@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
Lloh16:
	adrp	x1, _dev_attr_vcharger@GOTPAGE
Lloh17:
	ldr	x1, [x1, _dev_attr_vcharger@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
Lloh18:
	adrp	x1, _dev_attr_batt_temp@GOTPAGE
Lloh19:
	ldr	x1, [x1, _dev_attr_batt_temp@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_create_file
	str	x21, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ucb1x00_assabet_add.buttons,336,3 ; @ucb1x00_assabet_add.buttons
	.comm	_BTN_0,8,3                      ; @BTN_0
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucb1x00"

l_.str.1:                               ; @.str.1
	.asciz	"gpio-keys"

	.comm	_dev_attr_vbatt,4,2             ; @dev_attr_vbatt
	.comm	_dev_attr_vcharger,4,2          ; @dev_attr_vcharger
	.comm	_dev_attr_batt_temp,4,2         ; @dev_attr_batt_temp
	.no_dead_strip	_ucb1x00_assabet_add
.subsections_via_symbols
