	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_siox_get_data
_gpio_siox_get_data:                    ## @gpio_siox_get_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r13
	leaq	40(%rax), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	24(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movq	(%r13), %r12
	movq	8(%r13), %r14
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$11, %ebx
	xorl	%eax, %eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%esi, %r10d
	je	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%edx, 16(%r13)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rax
	decl	%ebx
	cmpq	$12, %rax
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	shrl	$3, %edx
	movl	(%r15,%rdx,4), %r9d
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %edi
	shll	%cl, %edi
	movl	(%r12,%rdx,4), %edx
	movl	(%r14,%rax,4), %esi
	movzbl	%cl, %ecx
	btl	%ecx, %r9d
	jae	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%esi, %r11d
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%esi, %r8d
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	%edi, %edx
	je	LBB0_8
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%esi, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	%edi, %edx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movl	20(%r13), %eax
	andl	16(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movl	(%r15), %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movl	4(%r15), %eax
	movl	%eax, 4(%rcx)
	movl	8(%r15), %eax
	movl	%eax, 8(%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	$12, %rbx
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r14d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btl	%ebx, %eax
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%r13), %rdi
	movq	%rbx, %rsi
	callq	_irq_find_mapping
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_spin_lock_irq
	notl	%r14d
	andl	%r14d, 16(%r13)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	%r15d, %edi
	callq	_handle_nested_irq
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.no_dead_strip	_gpio_siox_get_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_siox_get_data
_gpio_siox_get_data:                    ; @gpio_siox_get_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x22, x0, #40
	mov	x0, x22
	bl	_mutex_lock
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x8, #0
	ldp	x9, x10, [x19]
Lloh0:
	adrp	x11, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh4:
	ldr	x12, [x12, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
Lloh6:
	adrp	x13, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh7:
	ldr	x13, [x13, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x13]
Lloh9:
	adrp	x14, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh10:
	ldr	x14, [x14, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	mov	w15, #11
	mov	w16, #1
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	tst	w13, w0
	b.eq	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w17, w16, w8
	ldr	w0, [x19, #16]
	orr	w17, w0, w17
	str	w17, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	sub	w15, w15, #1
	cmp	x8, #12
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w17, w15, #3
	lsl	x17, x17, #2
	ldr	w1, [x21, x17]
	and	w0, w15, #0x7
	lsl	w2, w16, w0
	ldr	w17, [x9, x17]
	and	w17, w17, w2
	ldr	w0, [x10, x8, lsl #2]
	tst	w1, w2
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w11, w0
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w0, w12, w0
	cmp	w0, #0
	ccmp	w17, #0, #0, ne
	b.eq	LBB0_2
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w0, w14, w0
	cmp	w0, #0
	ccmp	w17, #0, #4, ne
	b.ne	LBB0_2
	b	LBB0_3
LBB0_8:
	ldp	w8, w9, [x19, #16]
	and	w23, w9, w8
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w8, [x21]
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	w8, [x21, #4]
	str	w8, [x9, #4]
	ldr	w8, [x21, #8]
	str	w8, [x9, #8]
	mov	x0, x22
	bl	_mutex_unlock
	mov	x21, #0
	mov	w24, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	cmp	x21, #12
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	w25, w24, w21
	tst	w23, w25
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19, #32]
	mov	x1, x21
	bl	_irq_find_mapping
	mov	x22, x0
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x19, #16]
	bic	w8, w8, w25
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x22
	bl	_handle_nested_irq
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.no_dead_strip	_gpio_siox_get_data
.subsections_via_symbols
