	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_gpio_irq_map
_brcmstb_gpio_irq_map:                  ## @brcmstb_gpio_irq_map
	.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	%rdx, %r12
	movl	%esi, %r15d
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_brcmstb_gpio_hwirq_to_bank
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_dev_dbg
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_irq_set_chip_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_brcmstb_gpio_irq_lock_class@GOTPCREL(%rip), %rsi
	movq	_brcmstb_gpio_irq_request_class@GOTPCREL(%rip), %rdx
	movl	%r15d, %edi
	callq	_irq_set_lockdep_class
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_irq_set_chip_and_handler
	movl	%r15d, %edi
	callq	_irq_set_noprobe
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mapping irq %d for gpio line %d (bank %d)\n"

	.comm	_brcmstb_gpio_irq_lock_class,4,2 ## @brcmstb_gpio_irq_lock_class
	.comm	_brcmstb_gpio_irq_request_class,4,2 ## @brcmstb_gpio_irq_request_class
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.no_dead_strip	_brcmstb_gpio_irq_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmstb_gpio_irq_map
_brcmstb_gpio_irq_map:                  ; @brcmstb_gpio_irq_map
	.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
	mov	x21, x2
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	mov	x1, x2
	bl	_brcmstb_gpio_hwirq_to_bank
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x0, [x20, #8]
	ldr	w4, [x22, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x22
	bl	_irq_set_chip_data
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, _brcmstb_gpio_irq_lock_class@GOTPAGE
Lloh3:
	ldr	x1, [x1, _brcmstb_gpio_irq_lock_class@GOTPAGEOFF]
Lloh4:
	adrp	x2, _brcmstb_gpio_irq_request_class@GOTPAGE
Lloh5:
	ldr	x2, [x2, _brcmstb_gpio_irq_request_class@GOTPAGEOFF]
	mov	x0, x19
	bl	_irq_set_lockdep_class
Lloh6:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_irq_set_chip_and_handler
	mov	x0, x19
	bl	_irq_set_noprobe
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mapping irq %d for gpio line %d (bank %d)\n"

	.comm	_brcmstb_gpio_irq_lock_class,4,2 ; @brcmstb_gpio_irq_lock_class
	.comm	_brcmstb_gpio_irq_request_class,4,2 ; @brcmstb_gpio_irq_request_class
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.no_dead_strip	_brcmstb_gpio_irq_map
.subsections_via_symbols
