	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_cmd_set_profile_config
_be_cmd_set_profile_config:             ## @be_cmd_set_profile_config
	.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
	movq	%r9, %r13
	movq	%r8, %r14
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	$0, -64(%rbp)
	leaq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$24, -56(%rbp)
	movq	(%rbx), %rdi
	leaq	-52(%rbp), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$24, %esi
	callq	_dma_alloc_coherent
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_COMMON_SET_PROFILE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %ecx
	leaq	-64(%rbp), %r15
	leaq	-56(%rbp), %r9
	movq	%r15, %r8
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r14, 16(%r12)
	movq	%r13, 8(%r12)
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_be_cmd_notify_wait
	movl	%eax, %r15d
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %ecx
	callq	_dma_free_coherent
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_SET_PROFILE_CONFIG,4,2 ## @OPCODE_COMMON_SET_PROFILE_CONFIG
	.no_dead_strip	_be_cmd_set_profile_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_cmd_set_profile_config
_be_cmd_set_profile_config:             ; @be_cmd_set_profile_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #24]
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #24
	str	w8, [sp, #8]
	ldr	x0, [x19]
	orr	x2, x25, #0x4
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #24
	bl	_dma_alloc_coherent
	str	x0, [sp, #16]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x25, x0
Lloh3:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
	add	x0, x0, #8
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _OPCODE_COMMON_SET_PROFILE_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPCODE_COMMON_SET_PROFILE_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [sp, #8]
	add	x4, sp, #24
	add	x5, sp, #8
	bl	_be_wrb_cmd_hdr_prepare
	stp	x23, x24, [x25, #8]
	mov	x0, x22
	bl	_cpu_to_le32
	str	w0, [x25, #4]
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	x1, sp, #24
	mov	x0, x19
	bl	_be_cmd_notify_wait
	mov	x20, x0
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	ldp	w1, w3, [sp, #8]
	bl	_dma_free_coherent
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_SET_PROFILE_CONFIG,4,2 ; @OPCODE_COMMON_SET_PROFILE_CONFIG
	.no_dead_strip	_be_cmd_set_profile_config
.subsections_via_symbols
