	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_init_managed_trigger
_zpa2326_init_managed_trigger:          ## @zpa2326_init_managed_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
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	movl	4(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_devm_iio_trigger_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, 8(%rax)
	movq	_zpa2326_trigger_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%r15)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	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	_zpa2326_trigger_ops,4,2        ## @zpa2326_trigger_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to register hardware trigger (%d)"

	.no_dead_strip	_zpa2326_init_managed_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_init_managed_trigger
_zpa2326_init_managed_trigger:          ; @zpa2326_init_managed_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldp	w3, w2, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_iio_trigger_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
Lloh2:
	adrp	x8, _zpa2326_trigger_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _zpa2326_trigger_ops@GOTPAGEOFF]
	stp	x8, x19, [x0]
	str	x0, [x20]
	mov	x0, x19
	bl	_devm_iio_trigger_register
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-dev%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_zpa2326_trigger_ops,4,2        ; @zpa2326_trigger_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to register hardware trigger (%d)"

	.no_dead_strip	_zpa2326_init_managed_trigger
.subsections_via_symbols
