	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_dma_mode_set
_tw686x_dma_mode_set:                   ## @tw686x_dma_mode_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_TW686X_DMA_MODE_MEMCPY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_dma_mode_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_TW686X_DMA_MODE_CONTIG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_dma_mode_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_TW686X_DMA_MODE_SG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_dma_mode_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %eax
	movq	_dma_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TW686X_DMA_MODE_MEMCPY,4,2     ## @TW686X_DMA_MODE_MEMCPY
	.comm	_dma_mode,4,2                   ## @dma_mode
	.comm	_TW686X_DMA_MODE_CONTIG,4,2     ## @TW686X_DMA_MODE_CONTIG
	.comm	_TW686X_DMA_MODE_SG,4,2         ## @TW686X_DMA_MODE_SG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tw686x_dma_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw686x_dma_mode_set
_tw686x_dma_mode_set:                   ; @tw686x_dma_mode_set
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _TW686X_DMA_MODE_MEMCPY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TW686X_DMA_MODE_MEMCPY@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_dma_mode_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x20, _TW686X_DMA_MODE_CONTIG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TW686X_DMA_MODE_CONTIG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_dma_mode_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x20, _TW686X_DMA_MODE_SG@GOTPAGE
Lloh5:
	ldr	x20, [x20, _TW686X_DMA_MODE_SG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_dma_mode_name
	mov	x1, x0
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _dma_mode@GOTPAGE
Lloh10:
	ldr	x9, [x9, _dma_mode@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TW686X_DMA_MODE_MEMCPY,4,2     ; @TW686X_DMA_MODE_MEMCPY
	.comm	_dma_mode,4,2                   ; @dma_mode
	.comm	_TW686X_DMA_MODE_CONTIG,4,2     ; @TW686X_DMA_MODE_CONTIG
	.comm	_TW686X_DMA_MODE_SG,4,2         ; @TW686X_DMA_MODE_SG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tw686x_dma_mode_set
.subsections_via_symbols
