	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_write_mhf
_brcms_c_write_mhf:                     ## @brcms_c_write_mhf
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_M_HOST_FLAGS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -64(%rbp)
	movq	_M_HOST_FLAGS2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_M_HOST_FLAGS3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_M_HOST_FLAGS4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_M_HOST_FLAGS5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_MHFMAX@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r12
	movl	(%r14), %edx
	callq	_brcms_b_write_shm
	cmpq	$2, (%r15)
	jb	LBB0_4
## %bb.2:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%rbx,4), %esi
	movl	(%r14,%rbx,4), %edx
	movq	%r12, %rdi
	callq	_brcms_b_write_shm
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_3
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_M_HOST_FLAGS1,4,2              ## @M_HOST_FLAGS1
	.comm	_M_HOST_FLAGS2,4,2              ## @M_HOST_FLAGS2
	.comm	_M_HOST_FLAGS3,4,2              ## @M_HOST_FLAGS3
	.comm	_M_HOST_FLAGS4,4,2              ## @M_HOST_FLAGS4
	.comm	_M_HOST_FLAGS5,4,2              ## @M_HOST_FLAGS5
	.comm	_MHFMAX,8,3                     ## @MHFMAX
	.no_dead_strip	_brcms_c_write_mhf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_write_mhf
_brcms_c_write_mhf:                     ; @brcms_c_write_mhf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _M_HOST_FLAGS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_HOST_FLAGS1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _M_HOST_FLAGS2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_HOST_FLAGS2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w1, w8, [sp, #4]
Lloh9:
	adrp	x8, _M_HOST_FLAGS3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_HOST_FLAGS3@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _M_HOST_FLAGS4@GOTPAGE
Lloh13:
	ldr	x9, [x9, _M_HOST_FLAGS4@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _M_HOST_FLAGS5@GOTPAGE
Lloh16:
	ldr	x10, [x10, _M_HOST_FLAGS5@GOTPAGEOFF]
	stp	w8, w9, [sp, #12]
Lloh17:
	ldr	w8, [x10]
	str	w8, [sp, #20]
Lloh18:
	adrp	x21, _MHFMAX@GOTPAGE
Lloh19:
	ldr	x21, [x21, _MHFMAX@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w2, [x19]
	bl	_brcms_b_write_shm
	ldr	x8, [x21]
	cmp	x8, #2
	b.lo	LBB0_4
; %bb.2:
	mov	w22, #1
	add	x23, sp, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x22, #2
	ldr	w1, [x23, x8]
	ldr	w2, [x19, x8]
	mov	x0, x20
	bl	_brcms_b_write_shm
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_M_HOST_FLAGS1,4,2              ; @M_HOST_FLAGS1
	.comm	_M_HOST_FLAGS2,4,2              ; @M_HOST_FLAGS2
	.comm	_M_HOST_FLAGS3,4,2              ; @M_HOST_FLAGS3
	.comm	_M_HOST_FLAGS4,4,2              ; @M_HOST_FLAGS4
	.comm	_M_HOST_FLAGS5,4,2              ; @M_HOST_FLAGS5
	.comm	_MHFMAX,8,3                     ; @MHFMAX
	.no_dead_strip	_brcms_c_write_mhf
.subsections_via_symbols
