	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_core_net_attach           ## -- Begin function qtnf_core_net_attach
	.p2align	4, 0x90
_qtnf_core_net_attach:                  ## @qtnf_core_net_attach
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_priv_to_wiphy
	movq	%rax, %r12
	movq	_ether_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_alloc_netdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 16(%r15)
	movq	_qtnf_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movl	$1, (%rbx)
	movq	%r12, %rdi
	callq	_wiphy_net
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dev_net_set
	movq	%r15, 32(%rbx)
	movl	28(%rbx), %edi
	movl	8(%r15), %esi
	callq	_ether_addr_copy
	movq	%r12, %rdi
	callq	_wiphy_dev
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SET_NETDEV_DEV
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
	movq	_QTNF_DEF_WDOG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$100, 8(%rbx)
	movq	_qtnf_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%r15, (%rax)
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free_netdev
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_5
LBB0_1:
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ether_setup,4,2                ## @ether_setup
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ## @NL80211_IFTYPE_UNSPECIFIED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qtnf_netdev_ops,4,2            ## @qtnf_netdev_ops
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_QTNF_DEF_WDOG_TIMEOUT,4,2      ## @QTNF_DEF_WDOG_TIMEOUT
	.comm	_qtnf_ethtool_ops,4,2           ## @qtnf_ethtool_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_core_net_attach           ; -- Begin function qtnf_core_net_attach
	.p2align	2
_qtnf_core_net_attach:                  ; @qtnf_core_net_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_priv_to_wiphy
	mov	x22, x0
Lloh0:
	adrp	x8, _ether_setup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ether_setup@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w24, #1
	mov	w0, #8
	mov	x1, x23
	mov	x2, x21
	mov	w4, #1
	mov	w5, #1
	bl	_alloc_netdev_mqs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x0, [x19, #16]
Lloh3:
	adrp	x8, _qtnf_netdev_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qtnf_netdev_ops@GOTPAGEOFF]
	str	x8, [x0, #40]
	str	w24, [x0]
	mov	x0, x22
	bl	_wiphy_net
	mov	x1, x0
	mov	x0, x21
	bl	_dev_net_set
	str	x19, [x21, #32]
	ldr	w0, [x21, #28]
	ldr	w1, [x19, #8]
	bl	_ether_addr_copy
	mov	x0, x22
	bl	_wiphy_dev
	mov	x1, x0
	mov	x0, x21
	bl	_SET_NETDEV_DEV
Lloh5:
	adrp	x8, _IFF_BROADCAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_BROADCAST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #4]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _QTNF_DEF_WDOG_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QTNF_DEF_WDOG_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x21, #24]
	mov	w9, #100
	stp	w8, w9, [x21, #4]
Lloh14:
	adrp	x8, _qtnf_ethtool_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qtnf_ethtool_ops@GOTPAGEOFF]
	str	x8, [x21, #16]
	mov	x0, x21
	bl	_netdev_priv
	str	x19, [x0]
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_register_netdevice
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_free_netdev
Lloh16:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ether_setup,4,2                ; @ether_setup
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ; @NL80211_IFTYPE_UNSPECIFIED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qtnf_netdev_ops,4,2            ; @qtnf_netdev_ops
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_QTNF_DEF_WDOG_TIMEOUT,4,2      ; @QTNF_DEF_WDOG_TIMEOUT
	.comm	_qtnf_ethtool_ops,4,2           ; @qtnf_ethtool_ops
.subsections_via_symbols
