	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_cfg_register               ## -- Begin function lbs_cfg_register
	.p2align	4, 0x90
_lbs_cfg_register:                      ## @lbs_cfg_register
	.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	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movq	_CFG80211_SIGNAL_TYPE_MBM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r15d, %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	callq	_lbs_rtap_supported
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	(%rbx), %rcx
	orl	%eax, 4(%rcx)
LBB0_2:
	movq	%r14, %rdi
	callq	_lbs_mesh_activated
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	(%rbx), %rcx
	orl	%eax, 4(%rcx)
	jmp	LBB0_5
LBB0_3:
	movq	(%rbx), %rcx
LBB0_5:
	movq	24(%rcx), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_lbs_band_2ghz@GOTPCREL(%rip), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	_cipher_suites@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	%edi, 16(%rax)
	callq	_ARRAY_SIZE
	movq	(%rbx), %rdi
	movl	%eax, 12(%rdi)
	movq	_lbs_reg_notifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	callq	_wiphy_register
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_7:
	movl	$1, (%r14)
	movl	8(%r14), %edi
	callq	_register_netdev
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_9:
	leaq	4(%r14), %rdi
	movq	_lbs_scan_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r14, %rdi
	callq	_lbs_cfg_set_regulatory_hint
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG80211_SIGNAL_TYPE_MBM,4,2   ## @CFG80211_SIGNAL_TYPE_MBM
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_lbs_band_2ghz,4,2              ## @lbs_band_2ghz
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_cipher_suites,4,2              ## @cipher_suites
	.comm	_lbs_reg_notifier,4,2           ## @lbs_reg_notifier
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot register wiphy device\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot register network device\n"

	.comm	_lbs_scan_worker,4,2            ## @lbs_scan_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbs_cfg_register               ; -- Begin function lbs_cfg_register
	.p2align	2
_lbs_cfg_register:                      ; @lbs_cfg_register
	.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	x19, x0
	ldr	x21, [x0, #16]
	ldr	x8, [x21]
	mov	w9, #1
Lloh0:
	adrp	x10, _CFG80211_SIGNAL_TYPE_MBM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CFG80211_SIGNAL_TYPE_MBM@GOTPAGEOFF]
	str	w9, [x8]
Lloh2:
	ldr	w9, [x10]
	str	w9, [x8, #32]
Lloh3:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh6:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w20
	ldr	x9, [x21]
	str	w8, [x9, #4]
	mov	x0, x19
	bl	_lbs_rtap_supported
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
LBB0_2:
	mov	x0, x19
	bl	_lbs_mesh_activated
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21]
LBB0_5:
Lloh15:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x8, [x8, #24]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _lbs_band_2ghz@GOTPAGE
Lloh19:
	ldr	x10, [x10, _lbs_band_2ghz@GOTPAGEOFF]
	str	x10, [x8, x9, lsl #3]
Lloh20:
	adrp	x8, _cipher_suites@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cipher_suites@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	w0, [x8, #16]
	bl	_ARRAY_SIZE
	ldr	x8, [x21]
Lloh23:
	adrp	x9, _lbs_reg_notifier@GOTPAGE
Lloh24:
	ldr	x9, [x9, _lbs_reg_notifier@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w0, [x8, #8]
	mov	x0, x8
	bl	_wiphy_register
	tbz	w0, #31, LBB0_7
; %bb.6:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #8]
	bl	_register_netdev
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.8:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_9:
	add	x0, x19, #4
Lloh30:
	adrp	x8, _lbs_scan_worker@GOTPAGE
Lloh31:
	ldr	x8, [x8, _lbs_scan_worker@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_lbs_cfg_set_regulatory_hint
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG80211_SIGNAL_TYPE_MBM,4,2   ; @CFG80211_SIGNAL_TYPE_MBM
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_lbs_band_2ghz,4,2              ; @lbs_band_2ghz
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_cipher_suites,4,2              ; @cipher_suites
	.comm	_lbs_reg_notifier,4,2           ; @lbs_reg_notifier
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot register wiphy device\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot register network device\n"

	.comm	_lbs_scan_worker,4,2            ; @lbs_scan_worker
.subsections_via_symbols
