	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_netdev                    ## -- Begin function init_netdev
	.p2align	4, 0x90
_init_netdev:                           ## @init_netdev
	.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, %rbx
	callq	_ath6kl_priv
	movq	_ath6kl_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rbx)
	movl	$1, (%rbx)
	movq	_ATH6KL_TX_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	_HTC_HDR_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_WMI_MAX_TX_META_SZ@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	movq	%rax, %r14
	movq	_ATH6KL_HTC_ALIGN_BYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	movl	$4, %esi
	callq	_roundup
	addl	%eax, 8(%rbx)
	movq	_ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 4(%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath6kl_netdev_ops,4,2          ## @ath6kl_netdev_ops
	.comm	_ATH6KL_TX_TIMEOUT,4,2          ## @ATH6KL_TX_TIMEOUT
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_HTC_HDR_LENGTH,8,3             ## @HTC_HDR_LENGTH
	.comm	_WMI_MAX_TX_META_SZ,8,3         ## @WMI_MAX_TX_META_SZ
	.comm	_ATH6KL_HTC_ALIGN_BYTES,8,3     ## @ATH6KL_HTC_ALIGN_BYTES
	.comm	_ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM,4,2 ## @ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_netdev                    ; -- Begin function init_netdev
	.p2align	2
_init_netdev:                           ; @init_netdev
	.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
	bl	_ath6kl_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ath6kl_netdev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath6kl_netdev_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, _ATH6KL_TX_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH6KL_TX_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh8:
	adrp	x8, _HTC_HDR_LENGTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HTC_HDR_LENGTH@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _WMI_MAX_TX_META_SZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WMI_MAX_TX_META_SZ@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _ATH6KL_HTC_ALIGN_BYTES@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ATH6KL_HTC_ALIGN_BYTES@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x8, x8, x10
	add	x0, x8, #8
	mov	w1, #4
	bl	_roundup
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
Lloh17:
	adrp	x8, _ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	cbnz	w0, LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _NETIF_F_IP_CSUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh22:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ath6kl_netdev_ops,4,2          ; @ath6kl_netdev_ops
	.comm	_ATH6KL_TX_TIMEOUT,4,2          ; @ATH6KL_TX_TIMEOUT
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_HTC_HDR_LENGTH,8,3             ; @HTC_HDR_LENGTH
	.comm	_WMI_MAX_TX_META_SZ,8,3         ; @WMI_MAX_TX_META_SZ
	.comm	_ATH6KL_HTC_ALIGN_BYTES,8,3     ; @ATH6KL_HTC_ALIGN_BYTES
	.comm	_ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM,4,2 ; @ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
.subsections_via_symbols
