	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_wiphy_allocate            ## -- Begin function qtnf_wiphy_allocate
	.p2align	4, 0x90
_qtnf_wiphy_allocate:                   ## @qtnf_wiphy_allocate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	4(%rdi), %eax
	movq	_QLINK_HW_CAPAB_DFS_OFFLOAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_qtn_cfg80211_ops@GOTPCREL(%rip), %rcx
	movq	$0, 8(%rcx)
LBB0_2:
	movq	_QLINK_HW_CAPAB_PWR_MGMT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_qtn_cfg80211_ops@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_4:
	movq	_qtn_cfg80211_ops@GOTPCREL(%rip), %rdi
	movl	$4, %esi
	callq	_wiphy_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_set_wiphy_dev
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_HW_CAPAB_DFS_OFFLOAD,4,2 ## @QLINK_HW_CAPAB_DFS_OFFLOAD
	.comm	_qtn_cfg80211_ops,16,3          ## @qtn_cfg80211_ops
	.comm	_QLINK_HW_CAPAB_PWR_MGMT,4,2    ## @QLINK_HW_CAPAB_PWR_MGMT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_wiphy_allocate            ; -- Begin function qtnf_wiphy_allocate
	.p2align	2
_qtnf_wiphy_allocate:                   ; @qtnf_wiphy_allocate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x8, _QLINK_HW_CAPAB_DFS_OFFLOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_HW_CAPAB_DFS_OFFLOAD@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _qtn_cfg80211_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qtn_cfg80211_ops@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	str	xzr, [x8, #8]
LBB0_2:
Lloh5:
	adrp	x10, _QLINK_HW_CAPAB_PWR_MGMT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _QLINK_HW_CAPAB_PWR_MGMT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x8]
LBB0_4:
Lloh8:
	adrp	x0, _qtn_cfg80211_ops@GOTPAGE
Lloh9:
	ldr	x0, [x0, _qtn_cfg80211_ops@GOTPAGEOFF]
	mov	w1, #4
	bl	_wiphy_new
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_set_wiphy_dev
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_HW_CAPAB_DFS_OFFLOAD,4,2 ; @QLINK_HW_CAPAB_DFS_OFFLOAD
	.comm	_qtn_cfg80211_ops,16,3          ; @qtn_cfg80211_ops
	.comm	_QLINK_HW_CAPAB_PWR_MGMT,4,2    ; @QLINK_HW_CAPAB_PWR_MGMT
.subsections_via_symbols
