	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d40_config_set_event
_d40_config_set_event:                  ## @d40_config_set_event
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_D40_TYPE_TO_EVENT
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	movq	_DMA_DEV_TO_DEV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.3:
	cmpq	%rcx, %rax
	jne	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_D40_CHAN_REG_SSLNK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	___d40_config_set_event
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
LBB0_5:
	movq	_D40_CHAN_REG_SDLNK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___d40_config_set_event         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ## @DMA_DEV_TO_MEM
	.comm	_DMA_DEV_TO_DEV,8,3             ## @DMA_DEV_TO_DEV
	.comm	_D40_CHAN_REG_SSLNK,4,2         ## @D40_CHAN_REG_SSLNK
	.comm	_D40_CHAN_REG_SDLNK,4,2         ## @D40_CHAN_REG_SDLNK
	.no_dead_strip	_d40_config_set_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d40_config_set_event
_d40_config_set_event:                  ; @d40_config_set_event
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_D40_TYPE_TO_EVENT
	mov	x21, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _DMA_DEV_TO_MEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_DEV_TO_MEM@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _DMA_DEV_TO_DEV@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DMA_DEV_TO_DEV@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _D40_CHAN_REG_SSLNK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D40_CHAN_REG_SSLNK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	___d40_config_set_event
	ldr	x8, [x20]
	ldr	x9, [x22]
LBB0_2:
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	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
LBB0_4:
Lloh8:
	adrp	x8, _D40_CHAN_REG_SDLNK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D40_CHAN_REG_SDLNK@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, 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
	b	___d40_config_set_event
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ; @DMA_DEV_TO_MEM
	.comm	_DMA_DEV_TO_DEV,8,3             ; @DMA_DEV_TO_DEV
	.comm	_D40_CHAN_REG_SSLNK,4,2         ; @D40_CHAN_REG_SSLNK
	.comm	_D40_CHAN_REG_SDLNK,4,2         ; @D40_CHAN_REG_SDLNK
	.no_dead_strip	_d40_config_set_event
.subsections_via_symbols
