	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_irq_set_type
_wm831x_irq_set_type:                   ## @wm831x_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movl	(%rbx), %ecx
	movq	_WM831X_IRQ_GPIO_1@GOTPCREL(%rip), %rsi
	movl	%ecx, %edx
	subl	(%rsi), %edx
	jl	LBB0_2
## %bb.1:
	movq	_WM831X_IRQ_GPIO_11@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jg	LBB0_2
## %bb.5:
	movq	(%rax), %rsi
	movslq	%edx, %rcx
	movl	$0, (%rsi,%rcx,4)
	movq	8(%rax), %rdx
	movl	$0, (%rdx,%rcx,4)
	addl	$-128, %r14d
	cmpl	$4, %r14d
	ja	LBB0_4
## %bb.6:
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%r14,4), %rbx
	addq	%rdi, %rbx
	jmpq	*%rbx
LBB0_12:
	movq	16(%rax), %rax
	movl	$65536, (%rax,%rcx,4)           ## imm = 0x10000
	movl	$1, (%rsi,%rcx,4)
	jmp	LBB0_13
LBB0_2:
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	movq	_WM831X_NUM_IRQS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_14
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_11:
	movq	_WM831X_GPN_POL@GOTPCREL(%rip), %rsi
	movl	$65536, %edi                    ## imm = 0x10000
	orl	(%rsi), %edi
	movq	16(%rax), %rax
	movl	%edi, (%rax,%rcx,4)
	movl	$1, (%rdx,%rcx,4)
	jmp	LBB0_13
LBB0_9:
	movq	_WM831X_GPN_POL@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_10:
	movq	16(%rax), %rax
	movl	$65536, (%rax,%rcx,4)           ## imm = 0x10000
	jmp	LBB0_13
LBB0_7:
	movq	_WM831X_GPN_INT_MODE@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	$65536, %esi                    ## imm = 0x10000
	orl	(%rdx), %esi
	movq	16(%rax), %rax
	movl	%esi, (%rax,%rcx,4)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_WM831X_IRQ_GPIO_1,4,2          ## @WM831X_IRQ_GPIO_1
	.comm	_WM831X_IRQ_GPIO_11,4,2         ## @WM831X_IRQ_GPIO_11
	.comm	_WM831X_NUM_IRQS,4,2            ## @WM831X_NUM_IRQS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM831X_GPN_INT_MODE,4,2        ## @WM831X_GPN_INT_MODE
	.comm	_WM831X_GPN_POL,4,2             ## @WM831X_GPN_POL
	.no_dead_strip	_wm831x_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 wm831x_irq_set_type
_wm831x_irq_set_type:                   ; @wm831x_irq_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
	mov	x19, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	ldr	w10, [x20]
Lloh0:
	adrp	x9, _WM831X_IRQ_GPIO_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM831X_IRQ_GPIO_1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _WM831X_IRQ_GPIO_11@GOTPAGE
Lloh4:
	ldr	x11, [x11, _WM831X_IRQ_GPIO_11@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	subs	w9, w10, w9
	ccmp	w10, w11, #0, ge
	b.le	LBB0_4
; %bb.1:
	tbnz	w10, #31, LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _WM831X_NUM_IRQS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM831X_NUM_IRQS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ge	LBB0_7
; %bb.3:
	mov	w0, #0
	b	LBB0_14
LBB0_4:
	mov	x8, x0
	sbfiz	x12, x9, #2, #32
	ldp	x10, x11, [x0]
	str	wzr, [x10, x12]
	str	wzr, [x11, x12]
	sub	w12, w19, #128
	cmp	w12, #4
	b.hi	LBB0_7
; %bb.5:
	sxtw	x9, w9
Lloh9:
	adrp	x13, lJTI0_0@PAGE
Lloh10:
	add	x13, x13, lJTI0_0@PAGEOFF
	adr	x14, LBB0_6
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_6:
	mov	w0, #0
	ldr	x8, [x8, #16]
	lsl	x9, x9, #2
	mov	w11, #65536
	str	w11, [x8, x9]
	mov	w8, #1
	str	w8, [x10, x9]
	b	LBB0_14
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_8:
	mov	w0, #0
Lloh14:
	adrp	x10, _WM831X_GPN_POL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WM831X_GPN_POL@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w10, w10, #0x10000
	ldr	x8, [x8, #16]
	lsl	x9, x9, #2
	str	w10, [x8, x9]
	mov	w8, #1
	str	w8, [x11, x9]
	b	LBB0_14
LBB0_9:
	mov	w0, #0
Lloh17:
	adrp	x10, _WM831X_GPN_POL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _WM831X_GPN_POL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	x8, [x8, #16]
	mov	w10, #65536
	b	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh19:
	adrp	x10, _WM831X_GPN_INT_MODE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _WM831X_GPN_INT_MODE@GOTPAGEOFF]
LBB0_12:
	ldr	w10, [x10]
	orr	w10, w10, #0x10000
	ldr	x8, [x8, #16]
LBB0_13:
	str	w10, [x8, x9, lsl #2]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_WM831X_IRQ_GPIO_1,4,2          ; @WM831X_IRQ_GPIO_1
	.comm	_WM831X_IRQ_GPIO_11,4,2         ; @WM831X_IRQ_GPIO_11
	.comm	_WM831X_NUM_IRQS,4,2            ; @WM831X_NUM_IRQS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM831X_GPN_INT_MODE,4,2        ; @WM831X_GPN_INT_MODE
	.comm	_WM831X_GPN_POL,4,2             ; @WM831X_GPN_POL
	.no_dead_strip	_wm831x_irq_set_type
.subsections_via_symbols
