	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_compatible_rates
_ipw_compatible_rates:                  ## @ipw_compatible_rates
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	24(%rbx), %edi
	movq	_IPW_MAX_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	$0, 8(%r14)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%r14)
	movl	%esi, (%rax,%rcx,4)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, %r13
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %esi
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r15, %rdi
	callq	_ipw_is_rate_in_mask
	movq	(%rbx), %rcx
	movl	(%rcx,%r12,4), %esi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LIBIPW_BASIC_RATE_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_SCAN
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%r14)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_SCAN
	jmp	LBB0_7
LBB0_8:
	movl	20(%rbx), %edi
	movq	_IPW_MAX_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_min
	testl	%eax, %eax
	jle	LBB0_16
## %bb.9:
	movl	%eax, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%r14)
	movl	%esi, (%rax,%rcx,4)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %esi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %edx
	movq	%r15, %rdi
	callq	_ipw_is_rate_in_mask
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13,4), %esi
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_LIBIPW_BASIC_RATE_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_SCAN
	movq	(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%r14)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_SCAN
	jmp	LBB0_15
LBB0_16:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_MAX_RATES,4,2              ## @IPW_MAX_RATES
	.comm	_LIBIPW_BASIC_RATE_MASK,4,2     ## @LIBIPW_BASIC_RATE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding masked mandatory rate %02X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Rate %02X masked : 0x%08X\n"

	.no_dead_strip	_ipw_compatible_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_compatible_rates
_ipw_compatible_rates:                  ; @ipw_compatible_rates
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [x20, #24]
Lloh0:
	adrp	x26, _IPW_MAX_RATES@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IPW_MAX_RATES@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_min
	mov	x22, x0
	str	xzr, [x19, #8]
Lloh2:
	adrp	x25, _LIBIPW_BASIC_RATE_MASK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LIBIPW_BASIC_RATE_MASK@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x27, #0
	mov	w8, w22
	lsl	x28, x8, #2
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh6:
	adrp	x24, l_.str@PAGE
Lloh7:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x19]
	add	x10, x9, #1
	str	x10, [x19, #8]
	str	w1, [x8, x9, lsl #2]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #4
	cmp	x28, x27
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #16]
	ldr	x8, [x20]
	ldr	w2, [x8, x27]
	mov	x0, x21
	bl	_ipw_is_rate_in_mask
	ldr	x8, [x20]
	ldr	w1, [x8, x27]
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_IPW_DEBUG_SCAN
	ldr	x8, [x20]
	ldr	w8, [x8, x27]
	ldp	x9, x10, [x19]
	add	x11, x10, #1
	str	x11, [x19, #8]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	str	x8, [sp]
	mov	x0, x23
	bl	_IPW_DEBUG_SCAN
	b	LBB0_3
LBB0_8:
	ldr	w0, [x20, #20]
	ldr	w8, [x26]
	sub	w1, w8, w22
	bl	_min
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x24, #0
	mov	w8, w0
	lsl	x26, x8, #2
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldp	x8, x9, [x19]
	add	x10, x9, #1
	str	x10, [x19, #8]
	str	w1, [x8, x9, lsl #2]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #4
	cmp	x26, x24
	b.eq	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x24]
	mov	x0, x21
	bl	_ipw_is_rate_in_mask
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x24]
	cbnz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x25]
	tst	w8, w1
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_IPW_DEBUG_SCAN
	ldr	x8, [x20]
	ldr	w8, [x8, x24]
	ldp	x9, x10, [x19]
	add	x11, x10, #1
	str	x11, [x19, #8]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21]
	str	x8, [sp]
	mov	x0, x22
	bl	_IPW_DEBUG_SCAN
	b	LBB0_11
LBB0_16:
	mov	w0, #1
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_MAX_RATES,4,2              ; @IPW_MAX_RATES
	.comm	_LIBIPW_BASIC_RATE_MASK,4,2     ; @LIBIPW_BASIC_RATE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding masked mandatory rate %02X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Rate %02X masked : 0x%08X\n"

	.no_dead_strip	_ipw_compatible_rates
.subsections_via_symbols
