	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_pdc_gic_set_type
_qcom_pdc_gic_set_type:                 ## @qcom_pdc_gic_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addl	$-128, %esi
	cmpl	$5, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movslq	%esi, %rcx
	leaq	l_switch.table.qcom_pdc_gic_set_type(%rip), %rdx
	movl	(%rdx,%rcx,4), %r14d
	leaq	l_switch.table.qcom_pdc_gic_set_type.1(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %edx
	movq	_IRQ_i_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_pdc_reg_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_irq_chip_set_type_parent       ## TAILCALL
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_EDGE_RISING,4,2            ## @PDC_EDGE_RISING
	.comm	_PDC_EDGE_FALLING,4,2           ## @PDC_EDGE_FALLING
	.comm	_PDC_EDGE_DUAL,4,2              ## @PDC_EDGE_DUAL
	.comm	_PDC_LEVEL_HIGH,4,2             ## @PDC_LEVEL_HIGH
	.comm	_PDC_LEVEL_LOW,4,2              ## @PDC_LEVEL_LOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_i_CFG,4,2                  ## @IRQ_i_CFG
	.no_dead_strip	_qcom_pdc_gic_set_type
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.qcom_pdc_gic_set_type
l_switch.table.qcom_pdc_gic_set_type:
	.long	129                             ## 0x81
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	130                             ## 0x82
	.long	130                             ## 0x82

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qcom_pdc_gic_set_type.1
l_switch.table.qcom_pdc_gic_set_type.1:
	.quad	_PDC_LEVEL_LOW
	.quad	_PDC_LEVEL_HIGH
	.quad	_PDC_EDGE_RISING
	.quad	_PDC_EDGE_FALLING
	.quad	_PDC_EDGE_DUAL

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_pdc_gic_set_type
_qcom_pdc_gic_set_type:                 ; @qcom_pdc_gic_set_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w8, w1, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x9, l_switch.table.qcom_pdc_gic_set_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qcom_pdc_gic_set_type@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
Lloh2:
	adrp	x9, l_switch.table.qcom_pdc_gic_set_type.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.qcom_pdc_gic_set_type.1@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w2, [x8]
Lloh4:
	adrp	x8, _IRQ_i_CFG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_i_CFG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_pdc_reg_write
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_irq_chip_set_type_parent
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_EDGE_RISING,4,2            ; @PDC_EDGE_RISING
	.comm	_PDC_EDGE_FALLING,4,2           ; @PDC_EDGE_FALLING
	.comm	_PDC_EDGE_DUAL,4,2              ; @PDC_EDGE_DUAL
	.comm	_PDC_LEVEL_HIGH,4,2             ; @PDC_LEVEL_HIGH
	.comm	_PDC_LEVEL_LOW,4,2              ; @PDC_LEVEL_LOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_i_CFG,4,2                  ; @IRQ_i_CFG
	.no_dead_strip	_qcom_pdc_gic_set_type
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.qcom_pdc_gic_set_type
l_switch.table.qcom_pdc_gic_set_type:
	.long	129                             ; 0x81
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	130                             ; 0x82
	.long	130                             ; 0x82

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qcom_pdc_gic_set_type.1
l_switch.table.qcom_pdc_gic_set_type.1:
	.quad	_PDC_LEVEL_LOW
	.quad	_PDC_LEVEL_HIGH
	.quad	_PDC_EDGE_RISING
	.quad	_PDC_EDGE_FALLING
	.quad	_PDC_EDGE_DUAL

.subsections_via_symbols
