	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_11d_domain_info        ## -- Begin function lbs_set_11d_domain_info
	.p2align	4, 0x90
_lbs_set_11d_domain_info:               ## @lbs_set_11d_domain_info
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpb	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-136(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_CMD_ACT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movq	(%r14), %rax
	movsbq	(%rax), %rsi
	movsbl	1(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_lbs_deb_11d
	movq	_TLV_TYPE_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	movq	(%r14), %rax
	movb	(%rax), %al
	movq	-128(%rbp), %rcx
	movb	%al, (%rcx)
	movq	(%r14), %rax
	movb	1(%rax), %al
	movq	-128(%rbp), %rcx
	movb	%al, 1(%rcx)
	movq	-128(%rbp), %rax
	movb	$32, 2(%rax)
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.3:
	movq	_MAX_11D_TRIPLETS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.4:
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %r8
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r11d, %r11d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%r10,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, %r12
	jae	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r15d
	movl	$16, %r13d
	movq	%r10, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rdx), %rdi
	movl	(%r8), %esi
	testl	%esi, -16(%rdi,%r13)
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-8(%rdi,%r13), %rsi
	testq	%r9, %r9
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	%rbx, %rsi
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	%r14, (%rdi,%r13)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r11
	movl	$1, %r9d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rdx), %r15
	jb	LBB0_17
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r11, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r11, %r12
	callq	_lbs_deb_11d
	movq	%r12, %r11
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %r8
	movq	-104(%rbp), %rax
	leaq	(%r12,%r12,2), %rdx
	movq	%rbx, (%rax,%rdx,8)
	movq	%r11, 8(%rax,%rdx,8)
	movq	%r14, 16(%rax,%rdx,8)
	incq	%r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r10,8), %rdx
	movq	_MAX_11D_TRIPLETS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpq	(%rdx), %r15
	jae	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r15
	addq	$24, %r13
	cmpq	%rax, %r12
	jb	LBB0_9
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	(%rdi,%r13), %r14
	movl	$1, %r11d
	movq	%rsi, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r9d
	cmpq	(%rdx), %r15
	jb	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r9, %r9
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r11, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	movq	%r10, %r15
	movq	%r11, %r13
	callq	_lbs_deb_11d
	movq	%r13, %r11
	movq	%r15, %r10
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %r8
	movq	-104(%rbp), %rax
	leaq	(%r12,%r12,2), %rdx
	movq	%rbx, (%rax,%rdx,8)
	movq	%r13, 8(%rax,%rdx,8)
	movq	%r14, 16(%rax,%rdx,8)
	incq	%r12
	movq	_MAX_11D_TRIPLETS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %r9d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r9d, %r9d
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r10
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r10
	jae	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, %r12
	jb	LBB0_5
LBB0_23:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_lbs_deb_11d
	shll	$3, %r12d
	leal	(%r12,%r12,2), %edi
	addl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, -120(%rbp)
	movq	_LBS_DEB_11D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	%rax, %rdi
	callq	_le16_to_cpu
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	leaq	-128(%rbp), %rdx
	movl	%eax, %ecx
	callq	_lbs_deb_hex
	leal	(%r12,%r12,2), %edi
	addl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, -136(%rbp)
	movq	_CMD_802_11D_DOMAIN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-136(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_lbs_cmd_with_response
	jmp	LBB0_24
LBB0_1:
	xorl	%eax, %eax
LBB0_24:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ACT_SET,4,2                ## @CMD_ACT_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting country code '%c%c'\n"

	.comm	_TLV_TYPE_DOMAIN,4,2            ## @TLV_TYPE_DOMAIN
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.comm	_MAX_11D_TRIPLETS,8,3           ## @MAX_11D_TRIPLETS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"11D triplet (%d, %d, %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"# triplets %d\n"

	.comm	_LBS_DEB_11D,4,2                ## @LBS_DEB_11D
L_.str.3:                               ## @.str.3
	.asciz	"802.11D domain param set"

	.comm	_CMD_802_11D_DOMAIN_INFO,4,2    ## @CMD_802_11D_DOMAIN_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_set_11d_domain_info        ; -- Begin function lbs_set_11d_domain_info
	.p2align	2
_lbs_set_11d_domain_info:               ; @lbs_set_11d_domain_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x8, [x0]
	ldrb	w8, [x8]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x24, [x8]
	add	x8, sp, #32
	add	x8, x8, #8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _CMD_ACT_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ACT_SET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #72]
	ldr	x8, [x19]
	ldrsb	x1, [x8]
	ldrsb	x8, [x8, #1]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_11d
Lloh5:
	adrp	x8, _TLV_TYPE_DOMAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLV_TYPE_DOMAIN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	mov	x21, #0
	str	x0, [sp, #56]
	ldr	x8, [x19]
	ldrb	w8, [x8]
	ldr	x9, [sp, #40]
	strb	w8, [x9]
	ldr	x8, [x19]
	ldrb	w8, [x8, #1]
	ldr	x9, [sp, #40]
	strb	w8, [x9, #1]
	ldr	x8, [sp, #40]
	mov	w9, #32
	strb	w9, [x8, #2]
Lloh8:
	adrp	x8, _NUM_NL80211_BANDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	cbz	w8, LBB0_19
; %bb.2:
Lloh11:
	adrp	x8, _MAX_11D_TRIPLETS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_11D_TRIPLETS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.3:
	mov	x27, #0
	mov	x9, #0
	mov	x28, #0
	mov	x26, #0
	mov	x23, #0
	mov	x25, #0
	mov	x21, #0
Lloh14:
	adrp	x19, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh15:
	ldr	x19, [x19, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
Lloh16:
	adrp	x10, _NUM_NL80211_BANDS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	x27, x10
	ccmp	x21, x8, #2, lo
	b.hs	LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x10, [x24, x27, lsl #3]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x10]
	cmp	x11, #0
	ccmp	x21, x8, #2, ne
	b.lo	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x9, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x25, x28, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_lbs_deb_11d
	ldr	x8, [sp, #64]
	mov	w9, #24
	madd	x8, x21, x9, x8
	stp	x23, x25, [x8]
	str	x28, [x8, #16]
	add	x21, x21, #1
Lloh21:
	adrp	x8, _MAX_11D_TRIPLETS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_11D_TRIPLETS@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	mov	w9, #1
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	mov	w22, #1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	stp	x25, x28, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_lbs_deb_11d
	mov	x9, #0
	ldr	x8, [sp, #64]
	mov	w10, #24
	madd	x8, x21, x10, x8
	stp	x23, x25, [x8]
	str	x28, [x8, #16]
	add	x21, x21, #1
	ldr	x10, [x24, x27, lsl #3]
Lloh26:
	adrp	x8, _MAX_11D_TRIPLETS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX_11D_TRIPLETS@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x11, [x10]
	cmp	x22, x11
	add	x22, x22, #1
	add	x20, x20, #24
	ccmp	x21, x8, #2, lo
	b.hs	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x10, #8]
	ldr	w11, [x12, x20]
	ldr	w13, [x19]
	tst	w13, w11
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x13, x12, x20
	ldr	x11, [x13, #8]
	cbz	x9, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x26, #1
	cmp	x11, x9
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x12, x20
	ldr	x9, [x9, #16]
	cmp	x9, x28
	b.ne	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x25, x25, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x28, [x13, #16]
	mov	w25, #1
	mov	x23, x11
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x26, x11
	mov	w9, #1
	b	LBB0_11
LBB0_19:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_lbs_deb_11d
	add	w8, w21, w21, lsl #1
	lsl	w19, w8, #3
	add	w0, w19, #8
	bl	_cpu_to_le16
	str	x0, [sp, #48]
Lloh31:
	adrp	x8, _LBS_DEB_11D@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LBS_DEB_11D@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
	bl	_le16_to_cpu
	mov	x3, x0
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	bl	_lbs_deb_hex
	add	w0, w19, #40
	bl	_cpu_to_le16
	str	x0, [sp, #32]
Lloh36:
	adrp	x8, _CMD_802_11D_DOMAIN_INFO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CMD_802_11D_DOMAIN_INFO@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	add	x2, sp, #32
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_lbs_cmd_with_response
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ACT_SET,4,2                ; @CMD_ACT_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting country code '%c%c'\n"

	.comm	_TLV_TYPE_DOMAIN,4,2            ; @TLV_TYPE_DOMAIN
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.comm	_MAX_11D_TRIPLETS,8,3           ; @MAX_11D_TRIPLETS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"11D triplet (%d, %d, %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"# triplets %d\n"

	.comm	_LBS_DEB_11D,4,2                ; @LBS_DEB_11D
l_.str.3:                               ; @.str.3
	.asciz	"802.11D domain param set"

	.comm	_CMD_802_11D_DOMAIN_INFO,4,2    ; @CMD_802_11D_DOMAIN_INFO
.subsections_via_symbols
