	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_reg_notify            ## -- Begin function qtnf_cmd_reg_notify
	.p2align	4, 0x90
_qtnf_cmd_reg_notify:                   ## @qtnf_cmd_reg_notify
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_priv_to_wiphy
	movq	%rax, %r15
	movq	8(%rbx), %r14
	movl	(%rbx), %edi
	movq	_QLINK_VIFID_RSVD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLINK_CMD_REG_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rdx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rdx), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
	movl	$-131, %eax
	addl	(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.4:
	cltq
	leaq	l_switch.table.qtnf_cmd_reg_notify(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 24(%rcx)
LBB0_5:
	movl	4(%r13), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	l_switch.table.qtnf_cmd_reg_notify.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 20(%rcx)
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$-135, %eax
	addl	8(%r13), %eax
	cmpl	$2, %eax
	ja	LBB0_8
## %bb.9:
	cltq
	leaq	l_switch.table.qtnf_cmd_reg_notify.2(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_8:
	movq	_QLINK_DFS_UNSET@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	movl	%r12d, (%rcx)
	movq	$0, 8(%rcx)
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	xorl	%r14d, %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movl	%eax, %ecx
	cmpq	%rcx, %r14
	jae	LBB0_18
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %r13
	testq	%r13, %r13
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r13), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rcx, 8(%rdx)
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rsi
	addq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_qtnf_cmd_channel_tlv_add
	incq	%r15
	movl	(%r13), %eax
	addq	$4, %r12
	cmpq	%rax, %r15
	jb	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_qtnf_bus_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_qtnf_bus_unlock
	movl	%ebx, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_VIFID_RSVD,4,2           ## @QLINK_VIFID_RSVD
	.comm	_QLINK_CMD_REG_NOTIFY,4,2       ## @QLINK_CMD_REG_NOTIFY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLINK_REGDOM_SET_BY_CORE,4,2   ## @QLINK_REGDOM_SET_BY_CORE
	.comm	_QLINK_REGDOM_SET_BY_USER,4,2   ## @QLINK_REGDOM_SET_BY_USER
	.comm	_QLINK_REGDOM_SET_BY_DRIVER,4,2 ## @QLINK_REGDOM_SET_BY_DRIVER
	.comm	_QLINK_REGDOM_SET_BY_COUNTRY_IE,4,2 ## @QLINK_REGDOM_SET_BY_COUNTRY_IE
	.comm	_QLINK_USER_REG_HINT_USER,4,2   ## @QLINK_USER_REG_HINT_USER
	.comm	_QLINK_USER_REG_HINT_CELL_BASE,4,2 ## @QLINK_USER_REG_HINT_CELL_BASE
	.comm	_QLINK_USER_REG_HINT_INDOOR,4,2 ## @QLINK_USER_REG_HINT_INDOOR
	.comm	_QLINK_DFS_FCC,4,2              ## @QLINK_DFS_FCC
	.comm	_QLINK_DFS_ETSI,4,2             ## @QLINK_DFS_ETSI
	.comm	_QLINK_DFS_JP,4,2               ## @QLINK_DFS_JP
	.comm	_QLINK_DFS_UNSET,4,2            ## @QLINK_DFS_UNSET
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qtnf_cmd_reg_notify
l_switch.table.qtnf_cmd_reg_notify:
	.quad	_QLINK_REGDOM_SET_BY_USER
	.quad	_QLINK_REGDOM_SET_BY_DRIVER
	.quad	_QLINK_REGDOM_SET_BY_COUNTRY_IE
	.quad	_QLINK_REGDOM_SET_BY_CORE

	.p2align	3                               ## @switch.table.qtnf_cmd_reg_notify.1
l_switch.table.qtnf_cmd_reg_notify.1:
	.quad	_QLINK_USER_REG_HINT_USER
	.quad	_QLINK_USER_REG_HINT_INDOOR
	.quad	_QLINK_USER_REG_HINT_CELL_BASE

	.p2align	3                               ## @switch.table.qtnf_cmd_reg_notify.2
l_switch.table.qtnf_cmd_reg_notify.2:
	.quad	_QLINK_DFS_JP
	.quad	_QLINK_DFS_FCC
	.quad	_QLINK_DFS_ETSI

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_reg_notify            ; -- Begin function qtnf_cmd_reg_notify
	.p2align	2
_qtnf_cmd_reg_notify:                   ; @qtnf_cmd_reg_notify
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_priv_to_wiphy
	mov	x20, x0
	ldr	x19, [x21, #8]
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _QLINK_VIFID_RSVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_VIFID_RSVD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _QLINK_CMD_REG_NOTIFY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLINK_CMD_REG_NOTIFY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #40
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x24, [x0]
	ldr	x8, [x23, #16]
	ldr	w9, [x8]
	ldr	x10, [x24, #32]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
	ldr	w8, [x23]
	sub	w8, w8, #131
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, l_switch.table.qtnf_cmd_reg_notify@PAGE
Lloh7:
	add	x9, x9, l_switch.table.qtnf_cmd_reg_notify@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x24, #24]
LBB0_3:
	ldr	w8, [x23, #4]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh8:
	adrp	x9, l_switch.table.qtnf_cmd_reg_notify.1@PAGE
Lloh9:
	add	x9, x9, l_switch.table.qtnf_cmd_reg_notify.1@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x24, #20]
LBB0_5:
	ldr	w8, [x23, #8]
	sub	w8, w8, #135
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.6:
Lloh10:
	adrp	x9, l_switch.table.qtnf_cmd_reg_notify.2@PAGE
Lloh11:
	add	x9, x9, l_switch.table.qtnf_cmd_reg_notify.2@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_8:
Lloh15:
	adrp	x8, _QLINK_DFS_UNSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLINK_DFS_UNSET@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	str	w22, [x24]
	str	xzr, [x24, #8]
Lloh17:
	adrp	x22, _NUM_NL80211_BANDS@GOTPAGE
Lloh18:
	ldr	x22, [x22, _NUM_NL80211_BANDS@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_17
; %bb.10:
	mov	x23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x9, [x20]
	ldr	x25, [x9, x23, lsl #3]
	cbz	x25, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x25]
	ldr	x10, [x24, #8]
	add	x10, x10, x9
	str	x10, [x24, #8]
	cbz	w9, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x26, #0
	mov	x27, #0
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #8]
	add	x1, x8, x26
	mov	x0, x21
	bl	_qtnf_cmd_channel_tlv_add
	add	x27, x27, #1
	ldr	w8, [x25]
	add	x26, x26, #4
	cmp	x27, x8
	b.lo	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x22]
	b	LBB0_11
LBB0_17:
	mov	x0, x19
	bl	_qtnf_bus_lock
	mov	x0, x19
	mov	x1, x21
	bl	_qtnf_cmd_send
	mov	x20, x0
	mov	x0, x19
	bl	_qtnf_bus_unlock
	mov	x0, x20
LBB0_18:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_VIFID_RSVD,4,2           ; @QLINK_VIFID_RSVD
	.comm	_QLINK_CMD_REG_NOTIFY,4,2       ; @QLINK_CMD_REG_NOTIFY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLINK_REGDOM_SET_BY_CORE,4,2   ; @QLINK_REGDOM_SET_BY_CORE
	.comm	_QLINK_REGDOM_SET_BY_USER,4,2   ; @QLINK_REGDOM_SET_BY_USER
	.comm	_QLINK_REGDOM_SET_BY_DRIVER,4,2 ; @QLINK_REGDOM_SET_BY_DRIVER
	.comm	_QLINK_REGDOM_SET_BY_COUNTRY_IE,4,2 ; @QLINK_REGDOM_SET_BY_COUNTRY_IE
	.comm	_QLINK_USER_REG_HINT_USER,4,2   ; @QLINK_USER_REG_HINT_USER
	.comm	_QLINK_USER_REG_HINT_CELL_BASE,4,2 ; @QLINK_USER_REG_HINT_CELL_BASE
	.comm	_QLINK_USER_REG_HINT_INDOOR,4,2 ; @QLINK_USER_REG_HINT_INDOOR
	.comm	_QLINK_DFS_FCC,4,2              ; @QLINK_DFS_FCC
	.comm	_QLINK_DFS_ETSI,4,2             ; @QLINK_DFS_ETSI
	.comm	_QLINK_DFS_JP,4,2               ; @QLINK_DFS_JP
	.comm	_QLINK_DFS_UNSET,4,2            ; @QLINK_DFS_UNSET
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qtnf_cmd_reg_notify
l_switch.table.qtnf_cmd_reg_notify:
	.quad	_QLINK_REGDOM_SET_BY_USER
	.quad	_QLINK_REGDOM_SET_BY_DRIVER
	.quad	_QLINK_REGDOM_SET_BY_COUNTRY_IE
	.quad	_QLINK_REGDOM_SET_BY_CORE

	.p2align	3                               ; @switch.table.qtnf_cmd_reg_notify.1
l_switch.table.qtnf_cmd_reg_notify.1:
	.quad	_QLINK_USER_REG_HINT_USER
	.quad	_QLINK_USER_REG_HINT_INDOOR
	.quad	_QLINK_USER_REG_HINT_CELL_BASE

	.p2align	3                               ; @switch.table.qtnf_cmd_reg_notify.2
l_switch.table.qtnf_cmd_reg_notify.2:
	.quad	_QLINK_DFS_JP
	.quad	_QLINK_DFS_FCC
	.quad	_QLINK_DFS_ETSI

.subsections_via_symbols
