	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_interrupt_trigger_probe
_iio_interrupt_trigger_probe:           ## @iio_interrupt_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
	movq	%rdi, %r14
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IRQF_TRIGGER_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	andq	(%rax), %rbx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movl	8(%rax), %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_iio_trigger_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_iio_trigger_set_drvdata
	movl	%r12d, (%r13)
	movq	_iio_interrupt_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_iio_interrupt_trigger_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	movq	%r15, %rdi
	callq	_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
LBB0_12:
	movq	%r15, %rdi
	callq	_iio_trigger_free
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IRQF_TRIGGER_MASK,8,3          ## @IRQF_TRIGGER_MASK
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irqtrig%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_iio_interrupt_trigger_ops,4,2  ## @iio_interrupt_trigger_ops
	.comm	_iio_interrupt_trigger_poll,4,2 ## @iio_interrupt_trigger_poll
L_.str.1:                               ## @.str.1
	.asciz	"request IRQ-%d failed"

	.no_dead_strip	_iio_interrupt_trigger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_interrupt_trigger_probe
_iio_interrupt_trigger_probe:           ; @iio_interrupt_trigger_probe
	.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	x20, x0
Lloh0:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _IRQF_TRIGGER_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_TRIGGER_MASK@GOTPAGEOFF]
	ldr	x23, [x0]
Lloh5:
	ldr	x24, [x8]
Lloh6:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	x25, [x8]
	ldr	w21, [x0, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_iio_trigger_alloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	and	x8, x24, x23
	orr	x23, x8, x25
	mov	x0, x19
	mov	x1, x22
	bl	_iio_trigger_set_drvdata
Lloh14:
	adrp	x8, _iio_interrupt_trigger_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _iio_interrupt_trigger_ops@GOTPAGEOFF]
	str	w21, [x22]
	str	x8, [x19, #8]
Lloh16:
	adrp	x8, _iio_interrupt_trigger_poll@GOTPAGE
Lloh17:
	ldr	x8, [x8, _iio_interrupt_trigger_poll@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	x0, x21
	mov	x2, x23
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_9
; %bb.4:
	mov	x23, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_11
LBB0_5:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_8:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_iio_trigger_register
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.10:
	mov	x0, x21
	mov	x1, x19
	bl	_free_irq
LBB0_11:
	mov	x0, x22
	bl	_kfree
LBB0_12:
	mov	x0, x19
	bl	_iio_trigger_free
LBB0_13:
	mov	x0, x23
	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_14:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IRQF_TRIGGER_MASK,8,3          ; @IRQF_TRIGGER_MASK
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irqtrig%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_iio_interrupt_trigger_ops,4,2  ; @iio_interrupt_trigger_ops
	.comm	_iio_interrupt_trigger_poll,4,2 ; @iio_interrupt_trigger_poll
l_.str.1:                               ; @.str.1
	.asciz	"request IRQ-%d failed"

	.no_dead_strip	_iio_interrupt_trigger_probe
.subsections_via_symbols
