	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_pic_map_fdt
_bcm_gpio_pic_map_fdt:                  ## @bcm_gpio_pic_map_fdt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %r12
	movq	_BCM_GPIO_PINS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jge	LBB0_1
## %bb.3:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%r12, %rsi
	callq	_bcm_gpio_pin_is_ro
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	leaq	-1(%rax), %rcx
	cmpq	$8, %rcx
	jae	LBB0_1
## %bb.5:
	movl	$143, %edx
	btl	%ecx, %edx
	jb	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	l_switch.table.bcm_gpio_pic_map_fdt(%rip), %rcx
	movq	-8(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	%r12, (%r15)
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movl	%ecx, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BCM_GPIO_PINS,8,3              ## @BCM_GPIO_PINS
	.comm	_GPIO_INTR_EDGE_RISING,4,2      ## @GPIO_INTR_EDGE_RISING
	.comm	_GPIO_INTR_EDGE_FALLING,4,2     ## @GPIO_INTR_EDGE_FALLING
	.comm	_GPIO_INTR_EDGE_BOTH,4,2        ## @GPIO_INTR_EDGE_BOTH
	.comm	_GPIO_INTR_LEVEL_HIGH,4,2       ## @GPIO_INTR_LEVEL_HIGH
	.comm	_GPIO_INTR_LEVEL_LOW,4,2        ## @GPIO_INTR_LEVEL_LOW
	.no_dead_strip	_bcm_gpio_pic_map_fdt
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.bcm_gpio_pic_map_fdt
l_switch.table.bcm_gpio_pic_map_fdt:
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_EDGE_FALLING
	.quad	_GPIO_INTR_EDGE_BOTH
	.quad	_GPIO_INTR_LEVEL_HIGH
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_LEVEL_LOW

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_gpio_pic_map_fdt
_bcm_gpio_pic_map_fdt:                  ; @bcm_gpio_pic_map_fdt
	.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
	ldr	w8, [x1]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.1:
	mov	x22, x1
	ldr	x8, [x1, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _BCM_GPIO_PINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM_GPIO_PINS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_5
; %bb.2:
	mov	x19, x3
	mov	x20, x2
	mov	x1, x21
	bl	_bcm_gpio_pin_is_ro
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	sub	x8, x8, #1
	cmp	x8, #8
	b.hs	LBB0_5
; %bb.4:
	mov	w9, #143
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_6:
	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_7:
Lloh6:
	adrp	x9, l_switch.table.bcm_gpio_pic_map_fdt@PAGE
Lloh7:
	add	x9, x9, l_switch.table.bcm_gpio_pic_map_fdt@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	x21, [x20]
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.8:
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BCM_GPIO_PINS,8,3              ; @BCM_GPIO_PINS
	.comm	_GPIO_INTR_EDGE_RISING,4,2      ; @GPIO_INTR_EDGE_RISING
	.comm	_GPIO_INTR_EDGE_FALLING,4,2     ; @GPIO_INTR_EDGE_FALLING
	.comm	_GPIO_INTR_EDGE_BOTH,4,2        ; @GPIO_INTR_EDGE_BOTH
	.comm	_GPIO_INTR_LEVEL_HIGH,4,2       ; @GPIO_INTR_LEVEL_HIGH
	.comm	_GPIO_INTR_LEVEL_LOW,4,2        ; @GPIO_INTR_LEVEL_LOW
	.no_dead_strip	_bcm_gpio_pic_map_fdt
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.bcm_gpio_pic_map_fdt
l_switch.table.bcm_gpio_pic_map_fdt:
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_EDGE_FALLING
	.quad	_GPIO_INTR_EDGE_BOTH
	.quad	_GPIO_INTR_LEVEL_HIGH
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_EDGE_RISING
	.quad	_GPIO_INTR_LEVEL_LOW

.subsections_via_symbols
