	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_get_ro_pins
_bcm_gpio_get_ro_pins:                  ## @bcm_gpio_get_ro_pins
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rcx
	movl	%esi, %edi
	movq	%rdx, %rsi
	movl	$4, %edx
	callq	_OF_getencprop_alloc_multi
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rdi
	je	LBB0_26
## %bb.3:
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	%r15d, %r13d
	cmpl	$1, %r15d
	jne	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_27
LBB0_5:
	movl	%r13d, %r8d
	andl	$-2, %r8d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %esi
	movl	8(%rbx), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	movl	%esi, (%rax,%rdx,4)
	movl	4(%rdi,%rcx,4), %edx
	movl	8(%rbx), %esi
	addl	%ecx, %esi
	incl	%esi
	movslq	%esi, %rsi
	movl	%edx, (%rax,%rsi,4)
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_6
LBB0_7:
	testb	$1, %r13b
	je	LBB0_9
## %bb.8:
	movl	(%rdi,%rcx,4), %edx
	movslq	8(%rbx), %rsi
	movslq	%ecx, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
LBB0_9:
	addl	%r15d, 8(%rbx)
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_device_printf
	movq	-48(%rbp), %rax
	movl	(%rax), %ebx
	cmpl	$2, %r15d
	jl	LBB0_24
## %bb.10:
	movl	$1, %r14d
	leaq	L_.str.2(%rip), %r15
	movl	%ebx, %r12d
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%edx, %ebx
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r14,4), %edx
	leal	1(%rbx), %esi
	cmpl	%esi, %edx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$44, %edi
	callq	_putchar
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%ebx, %r12d
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax,%r14,4), %r12d
	movl	$1, %ecx
	movl	%r12d, %ebx
	jmp	LBB0_19
LBB0_20:
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.21:
	movl	$44, %edi
	callq	_putchar
LBB0_22:
	cmpl	%ebx, %r12d
	jne	LBB0_28
## %bb.23:
	movl	%r12d, %ebx
LBB0_24:
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_25
LBB0_28:
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_25:
	movq	-48(%rbp), %rdi
LBB0_26:
	callq	_OF_prop_free
	xorl	%eax, %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s pins: "

L_.str.2:                               ## @.str.2
	.asciz	"%d-%d"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

L_.str.4:                               ## @.str.4
	.asciz	"%d-%d.\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d.\n"

	.no_dead_strip	_bcm_gpio_get_ro_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_gpio_get_ro_pins
_bcm_gpio_get_ro_pins:                  ; @bcm_gpio_get_ro_pins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x0
	add	x3, sp, #24
	mov	x0, x1
	mov	x1, x2
	mov	w2, #4
	bl	_OF_getencprop_alloc_multi
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x0, [sp, #24]
	cbz	w20, LBB0_23
; %bb.2:
	mov	x8, #0
	ldr	x9, [x21]
	mov	w23, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x8, lsl #2]
	ldrsw	x11, [x21, #8]
	add	x11, x8, x11
	str	w10, [x9, x11, lsl #2]
	add	x8, x8, #1
	cmp	x23, x8
	b.ne	LBB0_3
; %bb.4:
	ldp	w8, w0, [x21, #8]
	add	w8, w8, w20
	str	w8, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_device_printf
	ldr	x8, [sp, #24]
	ldr	w22, [x8]
	cmp	w20, #2
	b.lt	LBB0_20
; %bb.5:
	mov	w9, #0
	lsl	x21, x23, #2
	mov	w23, #4
Lloh2:
	adrp	x19, l_.str.3@PAGE
Lloh3:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x24, x22
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x10
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #4
	cmp	x21, x23
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, x23]
	add	w11, w22, #1
	cmp	w10, w11
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #44
	bl	_putchar
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, w22
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
	mov	x0, x19
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	stp	x24, x22, [sp]
	mov	x0, x20
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_printf
	ldr	x8, [sp, #24]
	ldr	w24, [x8, x23]
	mov	w9, #1
	mov	x22, x24
	b	LBB0_7
LBB0_15:
	mov	w0, #-1
	b	LBB0_24
LBB0_16:
	cbz	w9, LBB0_18
; %bb.17:
	mov	w0, #44
	bl	_putchar
LBB0_18:
	cmp	w24, w22
	b.ne	LBB0_21
; %bb.19:
	mov	x22, x24
LBB0_20:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh6:
	adrp	x0, l_.str.5@PAGE
Lloh7:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_21:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x22, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_22:
	bl	_printf
	ldr	x0, [sp, #24]
LBB0_23:
	bl	_OF_prop_free
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s pins: "

l_.str.2:                               ; @.str.2
	.asciz	"%d-%d"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

l_.str.4:                               ; @.str.4
	.asciz	"%d-%d.\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d.\n"

	.no_dead_strip	_bcm_gpio_get_ro_pins
.subsections_via_symbols
