	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_pic_setup_intr
_bcm_gpio_pic_setup_intr:               ## @bcm_gpio_pic_setup_intr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r14
	callq	_device_get_softc
	movq	%rax, %r15
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_bcm_gpio_pic_map
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.3:
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	8(%r14), %rcx
	xorl	%eax, %eax
	cmpq	-32(%rbp), %rcx
	je	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bcm_gpio_pic_config_intr
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm_gpio_pic_setup_intr
.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_setup_intr
_bcm_gpio_pic_setup_intr:               ; @bcm_gpio_pic_setup_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x3, LBB0_6
; %bb.1:
	mov	x21, x3
	mov	x19, x1
	bl	_device_get_softc
	mov	x20, x0
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x21
	bl	_bcm_gpio_pic_map
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [sp]
Lloh0:
	adrp	x10, _EINVAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, wzr, w10, eq
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	x2, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_bcm_gpio_pic_config_intr
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm_gpio_pic_setup_intr
.subsections_via_symbols
