	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa1100_gpio_type
_sa1100_gpio_type:                      ## @sa1100_gpio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_BIT
	movq	_IRQ_TYPE_PROBE@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_1
## %bb.2:
	movl	4(%r14), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_11
## %bb.3:
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	orl	%ecx, %r15d
	testl	%r15d, %ecx
	jne	LBB0_5
LBB0_6:
	movl	%eax, %ecx
	notl	%ecx
	andl	%ecx, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r15d, %ecx
	je	LBB0_6
LBB0_5:
	orl	%eax, (%r14)
LBB0_7:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_9
## %bb.8:
	orl	%eax, 4(%r14)
	jmp	LBB0_10
LBB0_9:
	notl	%eax
	andl	%eax, 4(%r14)
LBB0_10:
	movq	%r14, %rdi
	callq	_sa1100_update_edge_regs
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_PROBE,4,2             ## @IRQ_TYPE_PROBE
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.no_dead_strip	_sa1100_gpio_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa1100_gpio_type
_sa1100_gpio_type:                      ; @sa1100_gpio_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	ldr	w0, [x21]
	bl	_BIT
Lloh0:
	adrp	x8, _IRQ_TYPE_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.1:
	ldp	w8, w9, [x19]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w9, w8
	tst	w8, w20
	b.ne	LBB0_5
LBB0_3:
	ldr	w8, [x19]
	bic	w8, w8, w0
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
LBB0_5:
	ldr	w8, [x19]
	orr	w8, w8, w0
LBB0_6:
	str	w8, [x19]
Lloh12:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19, #4]
	bic	w8, w8, w0
LBB0_9:
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_sa1100_update_edge_regs
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_PROBE,4,2             ; @IRQ_TYPE_PROBE
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.no_dead_strip	_sa1100_gpio_type
.subsections_via_symbols
