	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfx_pinctrl_irq_set_type
_stmfx_pinctrl_irq_set_type:            ## @stmfx_pinctrl_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, %r13d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_get_reg
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_get_mask
	movq	%rax, %r12
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_2:
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	orq	%r12, (%rax,%r14,8)
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rax
	notq	%rax
	movq	(%r15), %rcx
	andq	%rax, (%rcx,%r14,8)
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_irq_set_handler_locked
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
LBB0_7:
	movq	8(%r15), %rax
	orq	%r12, (%rax,%r14,8)
LBB0_9:
	notl	%r13d
	movq	16(%r15), %rax
	movq	(%rax,%r14,8), %rcx
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	jne	LBB0_11
## %bb.10:
	orq	%r12, %rcx
	jmp	LBB0_12
LBB0_11:
	andq	%r12, %rcx
LBB0_12:
	movq	%rcx, (%rax,%r14,8)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rax
	notq	%rax
	movq	8(%r15), %rcx
	andq	%rax, (%rcx,%r14,8)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_stmfx_pinctrl_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 stmfx_pinctrl_irq_set_type
_stmfx_pinctrl_irq_set_type:            ; @stmfx_pinctrl_irq_set_type
	.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	x19, x1
	mov	x23, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x21, x0
	ldr	w0, [x23]
	bl	_get_reg
	mov	x20, x0
	ldr	w0, [x23]
	bl	_get_mask
Lloh0:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	mov	x22, x0
Lloh6:
	adrp	x24, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x25, x20, #3
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x8, x25]
	orr	x9, x9, x22
	str	x9, [x8, x25]
Lloh8:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21]
	ldr	x9, [x8, x25]
	bic	x9, x9, x22
	str	x9, [x8, x25]
Lloh10:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_irq_set_handler_locked
Lloh12:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_13
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	x9, [x8, x25]
	orr	x9, x9, x22
LBB0_8:
	str	x9, [x8, x25]
	ldr	w10, [x24]
	ldr	x8, [x21, #16]
	ldr	x9, [x8, x20, lsl #3]
	bics	wzr, w10, w19
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	orr	x9, x9, x22
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	and	x9, x9, x22
LBB0_11:
	str	x9, [x8, x20, lsl #3]
LBB0_12:
	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
LBB0_13:
	ldr	x8, [x21, #8]
	ldr	x9, [x8, x25]
	bic	x9, x9, x22
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_stmfx_pinctrl_irq_set_type
.subsections_via_symbols
