	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dma_attr
_set_dma_attr:                          ## @set_dma_attr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_HINIC_CSR_DMA_ATTR_ADDR
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hinic_hwif_read_reg
	movl	%eax, %r15d
	movq	_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_DMA_ATTR_CLEAR
	movl	%eax, %ebx
	movq	_AT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_DMA_ATTR_CLEAR
	andl	%eax, %ebx
	movq	_PH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r15d, %edi
	callq	_HINIC_DMA_ATTR_CLEAR
	movl	%eax, %r13d
	movq	_NO_SNOOPING@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_HINIC_DMA_ATTR_CLEAR
	andl	%eax, %r13d
	andl	%ebx, %r13d
	movq	_TPH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_DMA_ATTR_CLEAR
	andl	%eax, %r13d
	movq	_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_DMA_ATTR_SET
	movl	%eax, %r15d
	movq	_AT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_DMA_ATTR_SET
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_DMA_ATTR_SET
	movl	%eax, %r14d
	movl	(%r12), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_DMA_ATTR_SET
	movl	%eax, %r12d
	movq	_TPH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_DMA_ATTR_SET
	orl	%r15d, %ebx
	orl	%r14d, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	orl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hinic_hwif_write_reg           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ST,4,2                         ## @ST
	.comm	_AT,4,2                         ## @AT
	.comm	_PH,4,2                         ## @PH
	.comm	_NO_SNOOPING,4,2                ## @NO_SNOOPING
	.comm	_TPH_EN,4,2                     ## @TPH_EN
	.no_dead_strip	_set_dma_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dma_attr
_set_dma_attr:                          ; @set_dma_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	w5, w6, [sp, #8]                ; 8-byte Folded Spill
	stp	w3, w4, [sp]                    ; 8-byte Folded Spill
	mov	x25, x2
	mov	x19, x0
	mov	x0, x1
	bl	_HINIC_CSR_DMA_ATTR_ADDR
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_hinic_hwif_read_reg
	mov	x26, x0
Lloh0:
	adrp	x23, _ST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ST@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_HINIC_DMA_ATTR_CLEAR
	mov	x27, x0
Lloh2:
	adrp	x24, _AT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x26
	bl	_HINIC_DMA_ATTR_CLEAR
	and	w27, w0, w27
Lloh4:
	adrp	x22, _PH@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x26
	bl	_HINIC_DMA_ATTR_CLEAR
	and	w27, w27, w0
Lloh6:
	adrp	x28, _NO_SNOOPING@GOTPAGE
Lloh7:
	ldr	x28, [x28, _NO_SNOOPING@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x26
	bl	_HINIC_DMA_ATTR_CLEAR
	and	w27, w27, w0
Lloh8:
	adrp	x20, _TPH_EN@GOTPAGE
Lloh9:
	ldr	x20, [x20, _TPH_EN@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x26
	bl	_HINIC_DMA_ATTR_CLEAR
	and	w26, w27, w0
	ldr	w1, [x23]
	mov	x0, x25
	bl	_HINIC_DMA_ATTR_SET
	mov	x25, x0
	ldr	w1, [x24]
	ldr	w0, [sp]                        ; 4-byte Folded Reload
	bl	_HINIC_DMA_ATTR_SET
	mov	x24, x0
	ldr	w1, [x22]
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_HINIC_DMA_ATTR_SET
	mov	x23, x0
	ldr	w1, [x28]
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_HINIC_DMA_ATTR_SET
	mov	x22, x0
	ldr	w1, [x20]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_HINIC_DMA_ATTR_SET
	orr	w8, w25, w26
	orr	w8, w8, w24
	orr	w8, w8, w23
	orr	w8, w8, w22
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_hinic_hwif_write_reg
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ST,4,2                         ; @ST
	.comm	_AT,4,2                         ; @AT
	.comm	_PH,4,2                         ; @PH
	.comm	_NO_SNOOPING,4,2                ; @NO_SNOOPING
	.comm	_TPH_EN,4,2                     ; @TPH_EN
	.no_dead_strip	_set_dma_attr
.subsections_via_symbols
