	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_kbc_check_pin_cfg
_tegra_kbc_check_pin_cfg:               ## @tegra_kbc_check_pin_cfg
	.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
	movl	$0, (%rsi)
	movq	_KBC_MAX_GPIO@GOTPCREL(%rip), %r9
	movl	(%r9), %r14d
	movl	$1, %eax
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.1:
	movq	16(%rdi), %r10
	xorl	%r11d, %r11d
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r10,%rdx,8), %ecx
	movq	8(%rdi), %rbx
	cmpl	(%rbx), %ecx
	jge	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%r14d, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdx,8), %r8d
	cmpl	$130, %r8d
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %r8d
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %r8d
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r10,%rdx,8), %ecx
	movq	8(%rdi), %rbx
	cmpl	4(%rbx), %ecx
	jge	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r11d
	movl	%r11d, (%rsi)
	movl	(%r9), %r14d
	jmp	LBB0_13
LBB0_10:
	movl	(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	movl	(%rdi), %edi
	movl	4(%r10,%rdx,8), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%r8d, %edx
	jmp	LBB0_8
LBB0_6:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
LBB0_7:
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_8:
	callq	_dev_err
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KBC_MAX_GPIO,4,2               ## @KBC_MAX_GPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin_cfg[%d]: invalid row number %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"pin_cfg[%d]: invalid column number %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"pin_cfg[%d]: invalid entry type %d\n"

	.no_dead_strip	_tegra_kbc_check_pin_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_kbc_check_pin_cfg
_tegra_kbc_check_pin_cfg:               ; @tegra_kbc_check_pin_cfg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	str	wzr, [x1]
Lloh0:
	adrp	x9, _KBC_MAX_GPIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KBC_MAX_GPIO@GOTPAGEOFF]
	ldr	w12, [x9]
	cmp	w12, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w11, #0
	mov	x2, #0
	ldr	x8, [x0, #16]
	add	x10, x8, #4
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x10]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w3, w8
	b.ge	LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, x2, #1
	add	x10, x10, #8
	cmp	x2, w12, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x10, #-4]
	cmp	w8, #130
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x10]
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #4]
	cmp	w3, w8
	b.ge	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w11, #1
	str	w11, [x1]
	ldr	w12, [x9]
	b	LBB0_3
LBB0_9:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x0]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	w0, [x0]
	ldr	w3, [x10]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x8
	b	LBB0_14
LBB0_12:
	ldr	w0, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_14:
	bl	_dev_err
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KBC_MAX_GPIO,4,2               ; @KBC_MAX_GPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin_cfg[%d]: invalid row number %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"pin_cfg[%d]: invalid column number %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"pin_cfg[%d]: invalid entry type %d\n"

	.no_dead_strip	_tegra_kbc_check_pin_cfg
.subsections_via_symbols
