	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu3050_trigger_probe
_mpu3050_trigger_probe:                 ## @mpu3050_trigger_probe
	.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, %r15d
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r13
	leaq	4(%r14), %r12
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	24(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%r13)
LBB0_4:
	movl	%r15d, %edi
	callq	_irq_get_irq_data
	movl	%eax, %edi
	callq	_irqd_get_trigger_type
	leaq	-128(%rax), %rcx
	cmpq	$3, %rcx
	ja	LBB0_10
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	$128, %ebx
	cmpl	$0, (%r13)
	je	LBB0_13
	jmp	LBB0_14
LBB0_9:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%r13)
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	$129, %ebx
	orq	(%rax), %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	cmpl	$0, (%r13)
	je	LBB0_13
	jmp	LBB0_14
LBB0_8:
	movl	$1, 8(%r13)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	$130, %ebx
	orq	(%rax), %rbx
	cmpl	$0, (%r13)
	jne	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_7:
	movl	$1, 4(%r13)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movl	$131, %ebx
	cmpl	$0, (%r13)
	je	LBB0_13
LBB0_14:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_15:
	orq	%rbx, %rcx
	movq	_mpu3050_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mpu3050_irq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r13), %r9
	movl	16(%r9), %r8d
	movl	%r15d, %edi
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movq	24(%r13), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_17:
	movl	%r15d, 12(%r13)
	movq	16(%r13), %rdi
	movq	24(%r13), %rax
	movq	%rax, 8(%rdi)
	movq	_mpu3050_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r14, %rsi
	callq	_iio_trigger_set_drvdata
	movq	16(%r13), %rdi
	callq	_iio_trigger_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	16(%r13), %rdi
	callq	_iio_trigger_get
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"drive-open-drain"

L_.str.2:                               ## @.str.2
	.asciz	"pulse interrupts on the rising edge\n"

L_.str.3:                               ## @.str.3
	.asciz	"pulse interrupts on the falling edge\n"

L_.str.4:                               ## @.str.4
	.asciz	"interrupts active high level\n"

	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
L_.str.5:                               ## @.str.5
	.asciz	"interrupts active low level\n"

L_.str.6:                               ## @.str.6
	.asciz	"unsupported IRQ trigger specified (%lx), enforce rising edge\n"

	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_mpu3050_irq_handler,4,2        ## @mpu3050_irq_handler
	.comm	_mpu3050_irq_thread,4,2         ## @mpu3050_irq_thread
L_.str.7:                               ## @.str.7
	.asciz	"can't get IRQ %d, error %d\n"

	.comm	_mpu3050_trigger_ops,4,2        ## @mpu3050_trigger_ops
	.no_dead_strip	_mpu3050_trigger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu3050_trigger_probe
_mpu3050_trigger_probe:                 ; @mpu3050_trigger_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	add	x22, x19, #4
	ldp	w3, w2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_devm_iio_trigger_alloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	mov	x0, x21
	bl	_irq_get_irq_data
	bl	_irqd_get_trigger_type
	sub	x8, x0, #128
	cmp	x8, #3
	b.hi	LBB0_7
; %bb.4:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_7:
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
LBB0_8:
	mov	w23, #128
	b	LBB0_12
LBB0_9:
	movi.2s	v0, #1
	stur	d0, [x20, #4]
Lloh13:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	mov	w9, #129
	orr	x23, x8, x9
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	b	LBB0_12
LBB0_10:
	mov	w8, #1
	str	w8, [x20, #8]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_info
Lloh20:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	mov	w9, #130
	orr	x23, x8, x9
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x20, #4]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	mov	w23, #131
LBB0_12:
	ldr	w8, [x20]
Lloh25:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x8, xzr, x9, eq
	orr	x3, x8, x23
Lloh28:
	adrp	x8, _mpu3050_irq_handler@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mpu3050_irq_handler@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _mpu3050_irq_thread@GOTPAGE
Lloh32:
	ldr	x8, [x8, _mpu3050_irq_thread@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	x5, [x20, #16]
	ldr	w4, [x5, #16]
	mov	x0, x21
	bl	_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
	ldr	x0, [x20, #24]
	str	x22, [sp]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_16
LBB0_14:
	str	w21, [x20, #12]
	ldp	x0, x8, [x20, #16]
Lloh36:
	adrp	x9, _mpu3050_trigger_ops@GOTPAGE
Lloh37:
	ldr	x9, [x9, _mpu3050_trigger_ops@GOTPAGEOFF]
	stp	x9, x8, [x0]
	mov	x1, x19
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x20, #16]
	bl	_iio_trigger_register
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	x0, [x20, #16]
	bl	_iio_trigger_get
	str	w0, [x19]
LBB0_16:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"drive-open-drain"

l_.str.2:                               ; @.str.2
	.asciz	"pulse interrupts on the rising edge\n"

l_.str.3:                               ; @.str.3
	.asciz	"pulse interrupts on the falling edge\n"

l_.str.4:                               ; @.str.4
	.asciz	"interrupts active high level\n"

	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
l_.str.5:                               ; @.str.5
	.asciz	"interrupts active low level\n"

l_.str.6:                               ; @.str.6
	.asciz	"unsupported IRQ trigger specified (%lx), enforce rising edge\n"

	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_mpu3050_irq_handler,4,2        ; @mpu3050_irq_handler
	.comm	_mpu3050_irq_thread,4,2         ; @mpu3050_irq_thread
l_.str.7:                               ; @.str.7
	.asciz	"can't get IRQ %d, error %d\n"

	.comm	_mpu3050_trigger_ops,4,2        ; @mpu3050_trigger_ops
	.no_dead_strip	_mpu3050_trigger_probe
.subsections_via_symbols
