	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_gpio_irq_set_type
_brcmstb_gpio_irq_set_type:             ## @brcmstb_gpio_irq_set_type
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	32(%rax), %r15
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_brcmstb_gpio_hwirq_to_offset
	movl	%eax, %edi
	callq	_BIT
	addl	$-128, %r13d
	cmpl	$4, %r13d
	ja	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	jmpq	*%rcx
LBB0_6:
	movl	%r14d, %ebx
	movl	%r14d, %esi
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	xorl	%esi, %esi
	movl	%r14d, %ebx
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	%r14d, %edx
LBB0_7:
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	movq	(%r15), %r15
	movl	24(%r12), %edi
	callq	_GIO_EC
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	notl	%r14d
	andl	%r14d, %eax
	orl	%eax, %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	(%r12), %r15
	movq	(%r13), %rbx
	movl	24(%r12), %edi
	callq	_GIO_EI
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	*%r15
	andl	%r14d, %eax
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movq	(%r12), %r15
	movq	(%r13), %rbx
	movl	24(%r12), %edi
	callq	_GIO_LEVEL
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	*%r15
	andl	%eax, %r14d
	orl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	movq	16(%r12), %r15
	movq	(%r13), %rbx
	movl	24(%r12), %edi
	callq	_GIO_EC
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	*%r15
	movq	16(%r12), %r15
	movq	(%r13), %rbx
	movl	24(%r12), %edi
	callq	_GIO_EI
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*%r15
	movq	16(%r12), %r15
	movq	(%r13), %rbx
	movl	24(%r12), %edi
	callq	_GIO_LEVEL
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*%r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_brcmstb_gpio_irq_set_type
.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_set_type
_brcmstb_gpio_irq_set_type:             ; @brcmstb_gpio_irq_set_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
	ldr	x22, [x0, #32]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_brcmstb_gpio_hwirq_to_offset
	bl	_BIT
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w25, #0
	mov	w24, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	mov	x8, x0
	br	x10
LBB0_2:
	mov	w24, #0
	mov	x25, x20
	mov	x8, x20
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
	mov	w8, #0
	mov	w24, #0
	mov	x25, x20
	b	LBB0_7
LBB0_5:
	mov	w25, #0
	mov	w8, #0
	mov	w24, #0
	b	LBB0_7
LBB0_6:
	mov	w25, #0
	mov	w8, #0
	mov	x24, x20
LBB0_7:
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x26, [x19]
	ldr	x27, [x22]
	ldr	w0, [x19, #24]
	bl	_GIO_EC
	add	x0, x0, x27
	blr	x26
	bic	w26, w0, w20
	ldr	x27, [x19]
	ldr	x28, [x22]
	ldr	w0, [x19, #24]
	bl	_GIO_EI
	add	x0, x0, x28
	blr	x27
	bic	w27, w0, w20
	ldr	x28, [x19]
	ldr	x23, [x22]
	ldr	w0, [x19, #24]
	bl	_GIO_LEVEL
	add	x0, x0, x23
	blr	x28
	bic	w20, w0, w20
	ldr	x23, [x19, #16]
	ldr	x28, [x22]
	ldr	w0, [x19, #24]
	bl	_GIO_EC
	add	x0, x0, x28
	orr	w1, w26, w25
	blr	x23
	ldr	x23, [x19, #16]
	ldr	x25, [x22]
	ldr	w0, [x19, #24]
	bl	_GIO_EI
	add	x0, x0, x25
	orr	w1, w27, w24
	blr	x23
	ldr	x23, [x19, #16]
	ldr	x22, [x22]
	ldr	w0, [x19, #24]
	bl	_GIO_LEVEL
	add	x0, x0, x22
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	orr	w1, w20, w8
	blr	x23
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_brcmstb_gpio_irq_set_type
.subsections_via_symbols
