	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiochip_is_requested          ## -- Begin function gpiochip_is_requested
	.p2align	4, 0x90
_gpiochip_is_requested:                 ## @gpiochip_is_requested
	.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	%esi, %ebx
	movq	%rdi, %r14
	addl	(%rdi), %ebx
	movl	%ebx, %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_gpio_desc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	%r14, 16(%rax,%rcx,8)
	je	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_FLAG_REQUESTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	(%rax,%rcx,8), %rsi
	addq	$8, %rsi
	callq	_test_bit
	movq	%rax, %rcx
	testq	%rax, %rax
	leaq	L_.str(%rip), %rax
	cmoveq	%rcx, %rax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_desc,8,3                  ## @gpio_desc
	.comm	_FLAG_REQUESTED,4,2             ## @FLAG_REQUESTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiochip_is_requested          ; -- Begin function gpiochip_is_requested
	.p2align	2
_gpiochip_is_requested:                 ; @gpiochip_is_requested
	.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	x20, x0
	ldr	w8, [x0]
	add	w19, w8, w1
	mov	x0, x19
	bl	_gpio_is_valid
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _gpio_desc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpio_desc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	umaddl	x9, w19, w9, x8
	ldr	x9, [x9, #16]
	cmp	x9, x20
	b.eq	LBB0_3
LBB0_2:
	mov	x0, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x9, _FLAG_REQUESTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLAG_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	mov	w9, #24
	madd	x8, x19, x9, x8
	add	x1, x8, #8
	bl	_test_bit
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x0, xzr, x8, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_desc,8,3                  ; @gpio_desc
	.comm	_FLAG_REQUESTED,4,2             ; @FLAG_REQUESTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?"

.subsections_via_symbols
