	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function creg_gpio_validate_pg
_creg_gpio_validate_pg:                 ## @creg_gpio_validate_pg
	.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
	movq	(%rsi), %rbx
	movq	(%rbx), %rax
	movslq	%edx, %r14
	movl	(%rax,%r14,4), %esi
	leal	-9(%rsi), %eax
	cmpl	$-9, %eax
	jbe	LBB0_4
## %bb.1:
	movl	$31, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_GENMASK
	movq	8(%rbx), %rcx
	testl	%eax, (%rcx,%r14,4)
	jne	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movl	$31, %edi
	callq	_GENMASK
	movq	16(%rbx), %rcx
	movl	(%rcx,%r14,4), %ecx
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdx
	xorl	%eax, %eax
	cmpl	%ecx, (%rdx,%r14,4)
	jne	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_creg_gpio_validate_pg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function creg_gpio_validate_pg
_creg_gpio_validate_pg:                 ; @creg_gpio_validate_pg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x19, [x1]
	ldr	x8, [x19]
	ldr	w1, [x8, w2, sxtw #2]
	sub	w8, w1, #9
	cmn	w8, #9
	b.ls	LBB0_4
; %bb.1:
	sxtw	x20, w2
	mov	w0, #31
	bl	_GENMASK
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x20, lsl #2]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	lsl	x21, x20, #2
	ldr	w1, [x8, x21]
	mov	w0, #31
	bl	_GENMASK
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x21]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x19, #8]
	ldr	w9, [x9, x20, lsl #2]
	cmp	w9, w8
	b.ne	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_creg_gpio_validate_pg
.subsections_via_symbols
