	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_itg3200_probe_trigger          ## -- Begin function itg3200_probe_trigger
	.p2align	4, 0x90
_itg3200_probe_trigger:                 ## @itg3200_probe_trigger
	.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
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_iio_trigger_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_iio_trigger_generic_data_rdy_poll@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rdi
	movq	8(%r14), %rax
	addq	$4, %rax
	movq	%rax, 8(%rdi)
	movq	_itg3200_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r15, %rsi
	callq	_iio_trigger_set_drvdata
	movq	(%r14), %rdi
	callq	_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	(%r14), %rsi
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_free_irq
LBB0_6:
	movq	(%r14), %rdi
	callq	_iio_trigger_free
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	(%r14), %rdi
	callq	_iio_trigger_get
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iio_trigger_generic_data_rdy_poll,4,2 ## @iio_trigger_generic_data_rdy_poll
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
L_.str.1:                               ## @.str.1
	.asciz	"itg3200_data_rdy"

	.comm	_itg3200_trigger_ops,4,2        ## @itg3200_trigger_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_itg3200_probe_trigger          ; -- Begin function itg3200_probe_trigger
	.p2align	2
_itg3200_probe_trigger:                 ; @itg3200_probe_trigger
	.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, x0
	bl	_iio_priv
	mov	x19, x0
	ldp	w2, w1, [x20, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iio_trigger_alloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x4, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, _iio_trigger_generic_data_rdy_poll@GOTPAGE
Lloh6:
	ldr	x1, [x1, _iio_trigger_generic_data_rdy_poll@GOTPAGEOFF]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldp	x0, x8, [x19]
	add	x8, x8, #4
Lloh9:
	adrp	x9, _itg3200_trigger_ops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _itg3200_trigger_ops@GOTPAGEOFF]
	stp	x9, x8, [x0]
	mov	x1, x20
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x19]
	bl	_iio_trigger_register
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldp	x1, x8, [x19]
	ldr	w0, [x8]
	bl	_free_irq
LBB0_4:
	ldr	x0, [x19]
	bl	_iio_trigger_free
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19]
	bl	_iio_trigger_get
	str	w0, [x20]
LBB0_7:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iio_trigger_generic_data_rdy_poll,4,2 ; @iio_trigger_generic_data_rdy_poll
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
l_.str.1:                               ; @.str.1
	.asciz	"itg3200_data_rdy"

	.comm	_itg3200_trigger_ops,4,2        ; @itg3200_trigger_ops
.subsections_via_symbols
