	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_get_gpio_num
_abx500_get_gpio_num:                   ## @abx500_get_gpio_num
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r10
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	xorl	%eax, %eax
LBB0_10:
	testb	$1, %r8b
	je	LBB0_12
## %bb.11:
	movl	(%r10,%rcx,8), %edx
	movl	4(%r10,%rcx,8), %edi
	addl	%edx, %edi
	decl	%edi
	cmpl	%esi, %edx
	cmovbl	%edx, %esi
	cmpl	%eax, %edi
	cmoval	%edi, %eax
	testq	%rcx, %rcx
	cmovel	%edi, %eax
	cmovel	%edx, %esi
LBB0_12:
	subl	%esi, %eax
	incl	%eax
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rcx
	movl	%eax, %edx
	cmpq	%rcx, %r9
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rcx,8), %eax
	movl	4(%r10,%rcx,8), %edi
	addl	%eax, %edi
	decl	%edi
	cmpl	%esi, %eax
	cmovbl	%eax, %esi
	cmpl	%edx, %edi
	cmoval	%edi, %edx
	testq	%rcx, %rcx
	cmovel	%edi, %edx
	movl	%esi, %edi
	cmovel	%eax, %edi
	movl	8(%r10,%rcx,8), %eax
	movl	%eax, %esi
	cmpl	%edi, %eax
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r10,%rcx,8), %edi
	addl	%edi, %eax
	decl	%eax
	cmpl	%edx, %eax
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_abx500_get_gpio_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abx500_get_gpio_num
_abx500_get_gpio_num:                   ; @abx500_get_gpio_num
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	mov	w12, #0
	mov	w11, #0
	ldr	x9, [x0, #8]
	lsl	x10, x10, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x9, x8
	ldp	w14, w13, [x13]
	add	w13, w14, w13
	sub	w13, w13, #1
	cmp	w14, w12
	csel	w12, w14, w12, lo
	cmp	w13, w11
	csel	w11, w13, w11, hi
	cmp	x8, #0
	csel	w11, w13, w11, eq
	csel	w12, w14, w12, eq
	add	x8, x8, #8
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.3:
	sub	w8, w11, w12
	add	w0, w8, #1
	ret
LBB0_4:
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_abx500_get_gpio_num
.subsections_via_symbols
