	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_pic_map_gpio
_bcm_gpio_pic_map_gpio:                 ## @bcm_gpio_pic_map_gpio
	.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
	movq	(%rsi), %r12
	movq	_BCM_GPIO_PINS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jge	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%r12, %rsi
	callq	_bcm_gpio_pin_is_ro
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	8(%rbx), %rcx
	movq	_GPIO_INTR_LEVEL_LOW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_8
## %bb.4:
	movq	_GPIO_INTR_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_8
## %bb.5:
	movq	_GPIO_INTR_EDGE_RISING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_8
## %bb.6:
	movq	_GPIO_INTR_EDGE_FALLING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_8
## %bb.7:
	movq	_GPIO_INTR_EDGE_BOTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, (%r15)
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%rcx, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_GPIO_PINS,8,3              ## @BCM_GPIO_PINS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GPIO_INTR_LEVEL_LOW,8,3        ## @GPIO_INTR_LEVEL_LOW
	.comm	_GPIO_INTR_LEVEL_HIGH,8,3       ## @GPIO_INTR_LEVEL_HIGH
	.comm	_GPIO_INTR_EDGE_RISING,8,3      ## @GPIO_INTR_EDGE_RISING
	.comm	_GPIO_INTR_EDGE_FALLING,8,3     ## @GPIO_INTR_EDGE_FALLING
	.comm	_GPIO_INTR_EDGE_BOTH,8,3        ## @GPIO_INTR_EDGE_BOTH
	.no_dead_strip	_bcm_gpio_pic_map_gpio
.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_gpio
_bcm_gpio_pic_map_gpio:                 ; @bcm_gpio_pic_map_gpio
	.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	x21, [x1]
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.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x1, x21
	bl	_bcm_gpio_pin_is_ro
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _GPIO_INTR_LEVEL_LOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIO_INTR_LEVEL_LOW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _GPIO_INTR_LEVEL_HIGH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GPIO_INTR_LEVEL_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _GPIO_INTR_EDGE_RISING@GOTPAGE
Lloh10:
	ldr	x11, [x11, _GPIO_INTR_EDGE_RISING@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _GPIO_INTR_EDGE_FALLING@GOTPAGE
Lloh13:
	ldr	x12, [x12, _GPIO_INTR_EDGE_FALLING@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
Lloh15:
	adrp	x13, _GPIO_INTR_EDGE_BOTH@GOTPAGE
Lloh16:
	ldr	x13, [x13, _GPIO_INTR_EDGE_BOTH@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.ne	LBB0_5
; %bb.3:
	str	x21, [x20]
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.4:
	str	x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_GPIO_PINS,8,3              ; @BCM_GPIO_PINS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GPIO_INTR_LEVEL_LOW,8,3        ; @GPIO_INTR_LEVEL_LOW
	.comm	_GPIO_INTR_LEVEL_HIGH,8,3       ; @GPIO_INTR_LEVEL_HIGH
	.comm	_GPIO_INTR_EDGE_RISING,8,3      ; @GPIO_INTR_EDGE_RISING
	.comm	_GPIO_INTR_EDGE_FALLING,8,3     ; @GPIO_INTR_EDGE_FALLING
	.comm	_GPIO_INTR_EDGE_BOTH,8,3        ; @GPIO_INTR_EDGE_BOTH
	.no_dead_strip	_bcm_gpio_pic_map_gpio
.subsections_via_symbols
