	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_set_skb_gso
_xennet_set_skb_gso:                    ## @xennet_set_skb_gso
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_XEN_NETIF_GSO_TYPE_TCPV4@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.5:
	movq	_XEN_NETIF_GSO_TYPE_TCPV6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	%r15, 16(%rax)
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.10:
	movq	_SKB_GSO_TCPV4@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_SKB_GSO_TCPV6@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	%ebx, 8(%rax)
	movq	_SKB_GSO_DODGY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_shinfo
	orl	%ebx, 8(%rax)
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	$0, (%rax)
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GSO size must not be zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XEN_NETIF_GSO_TYPE_TCPV4,8,3   ## @XEN_NETIF_GSO_TYPE_TCPV4
	.comm	_XEN_NETIF_GSO_TYPE_TCPV6,8,3   ## @XEN_NETIF_GSO_TYPE_TCPV6
L_.str.1:                               ## @.str.1
	.asciz	"Bad GSO type %d\n"

	.comm	_SKB_GSO_TCPV4,4,2              ## @SKB_GSO_TCPV4
	.comm	_SKB_GSO_TCPV6,4,2              ## @SKB_GSO_TCPV6
	.comm	_SKB_GSO_DODGY,4,2              ## @SKB_GSO_DODGY
	.no_dead_strip	_xennet_set_skb_gso
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_set_skb_gso
_xennet_set_skb_gso:                    ; @xennet_set_skb_gso
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x21, [x1, #8]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _XEN_NETIF_GSO_TYPE_TCPV4@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XEN_NETIF_GSO_TYPE_TCPV4@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _XEN_NETIF_GSO_TYPE_TCPV6@GOTPAGE
Lloh3:
	ldr	x10, [x10, _XEN_NETIF_GSO_TYPE_TCPV6@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x19, x0
	bl	_skb_shinfo
	str	x21, [x0, #16]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _SKB_GSO_TCPV4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SKB_GSO_TCPV4@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh7:
	adrp	x11, _SKB_GSO_TCPV6@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SKB_GSO_TCPV6@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	w20, [x8]
	mov	x0, x19
	bl	_skb_shinfo
	str	w20, [x0, #8]
Lloh9:
	adrp	x8, _SKB_GSO_DODGY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SKB_GSO_DODGY@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0, #8]
	orr	w8, w8, w20
	str	w8, [x0, #8]
	mov	x0, x19
	bl	_skb_shinfo
	mov	x8, x0
	mov	w0, #0
	str	xzr, [x8]
	b	LBB0_9
LBB0_3:
	bl	_net_ratelimit
	cbz	x0, LBB0_8
; %bb.4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	bl	_net_ratelimit
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_pr_warn
LBB0_8:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GSO size must not be zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XEN_NETIF_GSO_TYPE_TCPV4,8,3   ; @XEN_NETIF_GSO_TYPE_TCPV4
	.comm	_XEN_NETIF_GSO_TYPE_TCPV6,8,3   ; @XEN_NETIF_GSO_TYPE_TCPV6
l_.str.1:                               ; @.str.1
	.asciz	"Bad GSO type %d\n"

	.comm	_SKB_GSO_TCPV4,4,2              ; @SKB_GSO_TCPV4
	.comm	_SKB_GSO_TCPV6,4,2              ; @SKB_GSO_TCPV6
	.comm	_SKB_GSO_DODGY,4,2              ; @SKB_GSO_DODGY
	.no_dead_strip	_xennet_set_skb_gso
.subsections_via_symbols
