	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_custom_reg_settings
_restore_custom_reg_settings:           ## @restore_custom_reg_settings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %r8
	movl	(%r8), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r9
	xorl	%r10d, %r10d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movl	%esi, %eax
	cmpq	%rax, %r10
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r9,%r10,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rsi
	leaq	(%rcx,%rcx,8), %rax
	leaq	(%rax,%rax,2), %rdi
	addq	%rcx, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	20(%rsi,%rax), %ecx
	movl	%ecx, 24(%rsi,%rax)
	movl	4(%rsi,%rax), %ecx
	movl	12(%rsi,%rax), %edx
	movl	%edx, 16(%rsi,%rax)
	movl	%ecx, 8(%rsi,%rax)
	movl	$0, (%rsi,%rax)
	addq	$28, %rax
	cmpq	%rax, %rdi
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %esi
	jmp	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
	.no_dead_strip	_restore_custom_reg_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_custom_reg_settings
_restore_custom_reg_settings:           ; @restore_custom_reg_settings
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
	ldr	w11, [x8]
	cbz	w11, LBB0_8
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, w11, uxtw
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x13, [x10, x9, lsl #3]
	cbz	x13, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x13]
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x13, #8]
	add	x11, x11, #12
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x11, #8]
	str	w13, [x11, #12]
	ldr	w13, [x11]
	str	w13, [x11, #4]
	ldur	w13, [x11, #-8]
	stur	w13, [x11, #-4]
	stur	wzr, [x11, #-12]
	add	x11, x11, #28
	subs	x12, x12, #1
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x8]
	b	LBB0_2
LBB0_8:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
	.no_dead_strip	_restore_custom_reg_settings
.subsections_via_symbols
