	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cfg_mem
_set_cfg_mem:                           ## @set_cfg_mem
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	(%rdi), %r11
	testq	%r11, %r11
	je	LBB0_14
## %bb.2:
	movq	%r9, %rax
	notq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, %r14
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	andq	%r8, %r14
	movl	$32, %ebx
	xorl	%r15d, %r15d
	movq	%r11, %r10
	jmp	LBB0_6
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-8(%r13,%rbx), %rax
	andq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	orq	%r14, %rax
	movq	%rax, -8(%r13,%rbx)
	orq	%r9, (%r13,%rbx)
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$40, %rbx
	decq	%r10
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rax
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdi), %r13
	movb	$1, %r12b
	cmpl	%esi, -32(%r13,%rbx)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, -24(%r13,%rbx)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rcx, -16(%r13,%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_13:
	xorl	%eax, %eax
	testb	%r12b, %r12b
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_19
LBB0_14:
	movq	_CXD2880_TNRDMD_MAX_CFG_MEM_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r11
	jae	LBB0_17
## %bb.15:
	movq	8(%rdi), %rax
	leaq	(%r11,%r11,4), %rbx
	movl	%esi, (%rax,%rbx,8)
	movq	%rdx, 8(%rax,%rbx,8)
	movq	%rcx, 16(%rax,%rbx,8)
	andq	%r9, %r8
	movq	%r8, 24(%rax,%rbx,8)
	movq	%r9, 32(%rax,%rbx,8)
	incq	%r11
	movq	%r11, (%rdi)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_18:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_MAX_CFG_MEM_COUNT,8,3 ## @CXD2880_TNRDMD_MAX_CFG_MEM_COUNT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_set_cfg_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cfg_mem
_set_cfg_mem:                           ; @set_cfg_mem
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_15
; %bb.1:
	ldr	x9, [x0]
	cbz	x9, LBB0_13
; %bb.2:
	mov	x8, #0
	mov	x13, #0
	mvn	x10, x5
	and	x11, x5, x4
	mov	x12, x9
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x13, #0
	mov	w14, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #40
	subs	x12, x12, #1
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x13, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w14, #0
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #1
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x0, #8]
	ldr	w14, [x13, x8]
	cmp	w14, w1
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x14, x13, x8
	ldr	x15, [x14, #8]
	cmp	x15, x2
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x14, [x14, #16]
	cmp	x14, x3
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w14, #0
	add	x13, x13, x8
	ldp	x15, x16, [x13, #24]
	and	x15, x15, x10
	orr	x15, x15, x11
	orr	x16, x16, x5
	stp	x15, x16, [x13, #24]
	b	LBB0_7
LBB0_12:
	cbz	w14, LBB0_16
LBB0_13:
Lloh0:
	adrp	x8, _CXD2880_TNRDMD_MAX_CFG_MEM_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXD2880_TNRDMD_MAX_CFG_MEM_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.hs	LBB0_17
; %bb.14:
	ldr	x10, [x0, #8]
	mov	w11, #40
	madd	x10, x9, x11, x10
	str	w1, [x10]
	stp	x2, x3, [x10, #8]
	and	x11, x5, x4
	stp	x11, x5, [x10, #24]
	add	x9, x9, #1
	str	x9, [x0]
	mov	w0, #0
	ret
LBB0_15:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	mov	w0, #0
	ret
LBB0_17:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_MAX_CFG_MEM_COUNT,8,3 ; @CXD2880_TNRDMD_MAX_CFG_MEM_COUNT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_set_cfg_mem
.subsections_via_symbols
