	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viio_trigger_alloc
_viio_trigger_alloc:                    ## @viio_trigger_alloc
	.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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	leaq	8(%rax), %r13
	movq	_iio_trig_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_iio_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	callq	_device_initialize
	leaq	56(%rbx), %rdi
	callq	_mutex_init
	movq	_CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_irq_alloc_descs
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_8
## %bb.2:
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_kvasprintf
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 40(%rbx)
	movq	_iio_trig_subirqmask@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_iio_trig_subirqunmask@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.4:
	movq	%rbx, %r15
	addq	$24, %r15
	xorl	%r14d, %r14d
	movq	_IRQ_NOAUTOEN@GOTPCREL(%rip), %r12
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movq	%r15, %rsi
	callq	_irq_set_chip
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movq	_handle_simple_irq@GOTPCREL(%rip), %rsi
	callq	_irq_set_handler
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movl	(%r12), %esi
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r13), %edx
	callq	_irq_modify_status
	incq	%r14
	movq	_CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_device
	jmp	LBB0_10
LBB0_7:
	movq	(%rbx), %rdi
	movq	_CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_free_descs
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_iio_trig_type,4,2              ## @iio_trig_type
	.comm	_iio_bus_type,4,2               ## @iio_bus_type
	.comm	_CONFIG_IIO_CONSUMERS_PER_TRIGGER,4,2 ## @CONFIG_IIO_CONSUMERS_PER_TRIGGER
	.comm	_iio_trig_subirqmask,4,2        ## @iio_trig_subirqmask
	.comm	_iio_trig_subirqunmask,4,2      ## @iio_trig_subirqunmask
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOAUTOEN,4,2               ## @IRQ_NOAUTOEN
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.no_dead_strip	_viio_trigger_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viio_trigger_alloc
_viio_trigger_alloc:                    ; @viio_trigger_alloc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
Lloh2:
	adrp	x8, _iio_bus_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iio_bus_type@GOTPAGEOFF]
	mov	x20, x19
	str	x8, [x20, #8]!
Lloh4:
	adrp	x8, _iio_trig_type@GOTPAGE
Lloh5:
	ldr	x8, [x8, _iio_trig_type@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_device_initialize
	add	x0, x19, #56
	bl	_mutex_init
Lloh6:
	adrp	x23, _CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CONFIG_IIO_CONSUMERS_PER_TRIGGER@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w0, #-1
	mov	w1, #0
	mov	w3, #0
	bl	_irq_alloc_descs
	str	x0, [x19]
	tbnz	x0, #63, LBB0_8
; %bb.2:
	ldr	w0, [x24]
	mov	x1, x22
	mov	x2, x21
	bl	_kvasprintf
	str	x0, [x19, #48]
	cbz	x0, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _iio_trig_subirqunmask@GOTPAGE
Lloh9:
	ldr	x8, [x8, _iio_trig_subirqunmask@GOTPAGEOFF]
	mov	x21, x19
	str	x8, [x21, #24]!
Lloh10:
	adrp	x8, _iio_trig_subirqmask@GOTPAGE
Lloh11:
	ldr	x8, [x8, _iio_trig_subirqmask@GOTPAGEOFF]
	stp	x8, x0, [x21, #8]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x24, #0
Lloh12:
	adrp	x22, _handle_simple_irq@GOTPAGE
Lloh13:
	ldr	x22, [x22, _handle_simple_irq@GOTPAGEOFF]
Lloh14:
	adrp	x25, _IRQ_NOREQUEST@GOTPAGE
Lloh15:
	ldr	x25, [x25, _IRQ_NOREQUEST@GOTPAGEOFF]
Lloh16:
	adrp	x26, _IRQ_NOAUTOEN@GOTPAGE
Lloh17:
	ldr	x26, [x26, _IRQ_NOAUTOEN@GOTPAGEOFF]
Lloh18:
	adrp	x27, _IRQ_NOPROBE@GOTPAGE
Lloh19:
	ldr	x27, [x27, _IRQ_NOPROBE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x24, x8
	mov	x1, x21
	bl	_irq_set_chip
	ldr	x8, [x19]
	add	x0, x24, x8
	mov	x1, x22
	bl	_irq_set_handler
	ldr	x8, [x19]
	add	x0, x24, x8
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w1, w9, w8
	ldr	w2, [x27]
	bl	_irq_modify_status
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_get_device
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19]
	ldr	w1, [x23]
	bl	_irq_free_descs
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_iio_trig_type,4,2              ; @iio_trig_type
	.comm	_iio_bus_type,4,2               ; @iio_bus_type
	.comm	_CONFIG_IIO_CONSUMERS_PER_TRIGGER,4,2 ; @CONFIG_IIO_CONSUMERS_PER_TRIGGER
	.comm	_iio_trig_subirqmask,4,2        ; @iio_trig_subirqmask
	.comm	_iio_trig_subirqunmask,4,2      ; @iio_trig_subirqunmask
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOAUTOEN,4,2               ; @IRQ_NOAUTOEN
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.no_dead_strip	_viio_trigger_alloc
.subsections_via_symbols
