	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_gpio_sb_irq_set_type
_xgene_gpio_sb_irq_set_type:            ## @xgene_gpio_sb_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_HWIRQ_TO_GPIO
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	movq	_GPIO_INT_LEVEL_L@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpl	$131, %ecx
	je	LBB0_2
## %bb.1:
	movq	_GPIO_INT_LEVEL_H@GOTPCREL(%rip), %rsi
LBB0_2:
	cmpl	$128, %ecx
	cmoveq	%rdx, %rsi
	movl	(%rsi), %r12d
	leaq	8(%rbx), %r13
	movq	_MPA_GPIO_SEL_LO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	addl	%eax, %eax
	movq	%r13, %rdi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_xgene_gpio_set_bit
	movq	_MPA_GPIO_INT_LVL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	callq	_xgene_gpio_set_bit
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	cmpl	$1, %r15d
	movl	$130, %esi
	sbbl	$0, %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_irq_chip_set_type_parent       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_INT_LEVEL_H,4,2           ## @GPIO_INT_LEVEL_H
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_GPIO_INT_LEVEL_L,4,2           ## @GPIO_INT_LEVEL_L
	.comm	_MPA_GPIO_SEL_LO,8,3            ## @MPA_GPIO_SEL_LO
	.comm	_MPA_GPIO_INT_LVL,8,3           ## @MPA_GPIO_INT_LVL
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.no_dead_strip	_xgene_gpio_sb_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 xgene_gpio_sb_irq_set_type
_xgene_gpio_sb_irq_set_type:            ; @xgene_gpio_sb_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	mov	x21, x0
	ldr	w1, [x20]
	bl	_HWIRQ_TO_GPIO
Lloh0:
	adrp	x8, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w19
	cmp	w8, #131
	mov	w9, #128
Lloh3:
	adrp	x10, _GPIO_INT_LEVEL_L@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GPIO_INT_LEVEL_L@GOTPAGEOFF]
	ccmp	w8, w9, #4, ne
Lloh5:
	adrp	x8, _GPIO_INT_LEVEL_H@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIO_INT_LEVEL_H@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w22, [x8]
	add	x23, x21, #8
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _MPA_GPIO_SEL_LO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MPA_GPIO_SEL_LO@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	lsl	w2, w0, #1
	mov	x0, x23
	mov	w3, #1
	bl	_xgene_gpio_set_bit
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _MPA_GPIO_INT_LVL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MPA_GPIO_INT_LVL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x20]
	mov	x0, x23
	mov	x3, x22
	bl	_xgene_gpio_set_bit
Lloh13:
	adrp	x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w19
	mov	w8, #129
	cinc	w1, w8, ne
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_irq_chip_set_type_parent
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_INT_LEVEL_H,4,2           ; @GPIO_INT_LEVEL_H
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_GPIO_INT_LEVEL_L,4,2           ; @GPIO_INT_LEVEL_L
	.comm	_MPA_GPIO_SEL_LO,8,3            ; @MPA_GPIO_SEL_LO
	.comm	_MPA_GPIO_INT_LVL,8,3           ; @MPA_GPIO_INT_LVL
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.no_dead_strip	_xgene_gpio_sb_irq_set_type
.subsections_via_symbols
