	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmm_calc_regulatory_limit
_wmm_calc_regulatory_limit:             ## @wmm_calc_regulatory_limit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	16(%rax), %rbx
	movq	(%rcx), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_os_memcpy
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	jle	LBB0_7
## %bb.2:
	movq	8(%rbx), %rax
	movq	8(%r15), %rdx
	movq	(%rdx), %rdx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax,%rcx)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_3
	jmp	LBB0_7
LBB0_4:
	cmpq	$0, 16(%rax,%rcx)
	je	LBB0_7
## %bb.5:
	movq	16(%r15), %rdx
	movq	(%rdx), %rdi
	movl	8(%rax,%rcx), %edx
	movq	%r14, %rsi
	callq	_wmm_set_regulatory_limit
LBB0_7:
	movq	8(%r15), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	movq	8(%rax), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	incl	(%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wmm_calc_regulatory_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmm_calc_regulatory_limit
_wmm_calc_regulatory_limit:             ; @wmm_calc_regulatory_limit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0, #8]
	ldr	x21, [x8, #16]
	ldr	x1, [x9]
	mov	x0, x20
	mov	w2, #8
	bl	_os_memcpy
	cbz	x21, LBB0_7
; %bb.1:
	ldr	w9, [x21]
	cmp	w9, #0
	csel	w8, w9, wzr, gt
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	ldr	x9, [x21, #8]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	add	x9, x9, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-16]
	cmp	x11, x10
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	ldr	x8, [x9]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldur	w2, [x9, #-8]
	mov	x1, x20
	bl	_wmm_set_regulatory_limit
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
	mov	x0, x20
	mov	w2, #8
	bl	_os_memcmp
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	mov	x1, x20
	mov	w2, #8
	bl	_os_memcpy
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wmm_calc_regulatory_limit
.subsections_via_symbols
