	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_get_reserved_pins
_bcm_gpio_get_reserved_pins:            ## @bcm_gpio_get_reserved_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_ofw_bus_get_node
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bcm_gpio_get_ro_pins
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_OF_child
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %r12
	leaq	-48(%rbp), %r13
	leaq	L_.str.3(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_OF_getprop_alloc
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	movl	$0, %r15d
	cmoveq	%rbx, %r15
	movq	-48(%rbp), %rdi
	callq	_OF_prop_free
	movq	%rbx, %rdi
	callq	_OF_peer
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_3
LBB0_7:
	testq	%r15, %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %ecx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rsi
	callq	_bcm_gpio_get_ro_pins
	xorl	%ecx, %ecx
	negq	%rax
	sbbl	%ecx, %ecx
	jmp	LBB0_9
LBB0_4:
	movl	$-1, %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"broadcom,read-only"

L_.str.1:                               ## @.str.1
	.asciz	"read-only"

L_.str.2:                               ## @.str.2
	.asciz	"name"

L_.str.3:                               ## @.str.3
	.asciz	"reserved"

L_.str.4:                               ## @.str.4
	.asciz	"broadcom,pins"

	.no_dead_strip	_bcm_gpio_get_reserved_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_reserved_pins
_bcm_gpio_get_reserved_pins:            ; @bcm_gpio_get_reserved_pins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	w0, [x0]
	bl	_ofw_bus_get_node
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_bcm_gpio_get_ro_pins
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x0, x20
	bl	_OF_child
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_OF_getprop_alloc
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_strcmp
	cmp	x0, #0
	csel	x23, x20, xzr, eq
	ldr	x0, [sp, #8]
	bl	_OF_prop_free
	mov	x0, x20
	bl	_OF_peer
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	cbz	x23, LBB0_4
LBB0_7:
	cbz	x23, LBB0_9
; %bb.8:
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
Lloh10:
	adrp	x3, l_.str.3@PAGE
Lloh11:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	bl	_bcm_gpio_get_ro_pins
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"broadcom,read-only"

l_.str.1:                               ; @.str.1
	.asciz	"read-only"

l_.str.2:                               ; @.str.2
	.asciz	"name"

l_.str.3:                               ; @.str.3
	.asciz	"reserved"

l_.str.4:                               ; @.str.4
	.asciz	"broadcom,pins"

	.no_dead_strip	_bcm_gpio_get_reserved_pins
.subsections_via_symbols
