	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tb10x_gpio_irq_set_type
_tb10x_gpio_irq_set_type:               ## @tb10x_gpio_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
	movq	_IRQF_TRIGGER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	callq	_irqd_set_trigger_type
	movq	_IRQ_SET_MASK_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_TRIGGER_MASK,4,2          ## @IRQF_TRIGGER_MASK
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only (both) edge triggered interrupts supported.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_SET_MASK_OK,4,2            ## @IRQ_SET_MASK_OK
	.no_dead_strip	_tb10x_gpio_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 tb10x_gpio_irq_set_type
_tb10x_gpio_irq_set_type:               ; @tb10x_gpio_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _IRQF_TRIGGER_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_TRIGGER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	bl	_irqd_set_trigger_type
Lloh6:
	adrp	x8, _IRQ_SET_MASK_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_SET_MASK_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_TRIGGER_MASK,4,2          ; @IRQF_TRIGGER_MASK
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only (both) edge triggered interrupts supported.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_SET_MASK_OK,4,2            ; @IRQ_SET_MASK_OK
	.no_dead_strip	_tb10x_gpio_irq_set_type
.subsections_via_symbols
