	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_gpio_package_count
_acpi_gpio_package_count:               ## @acpi_gpio_package_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %rcx
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %rdx
	shlq	$4, %rcx
	addq	%rdx, %rcx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdx
	incl	%eax
	cmpq	%rcx, %rdx
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	cmpl	$129, %esi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %esi
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$48, %rdx
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_acpi_gpio_package_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_gpio_package_count
_acpi_gpio_package_count:               ; @acpi_gpio_package_count
	.cfi_startproc
; %bb.0:
	ldrsw	x9, [x0]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x8, [x8, #8]
	add	x9, x8, x9, lsl #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #16
	add	w0, w0, #1
	cmp	x8, x9
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	cmp	w10, #129
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #128
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #48
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
Lloh0:
	adrp	x8, _EPROTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_acpi_gpio_package_count
.subsections_via_symbols
