	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_dev_trap_skb_build
_nsim_dev_trap_skb_build:               ## @nsim_dev_trap_skb_build
	.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
	movq	_NSIM_TRAP_L4_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_NLMSG_GOODSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leal	80(%r14), %r15d
	movq	%r12, %rdi
	callq	_skb_reset_mac_header
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movl	12(%rax), %edi
	callq	_eth_random_addr
	movl	8(%rbx), %edi
	callq	_eth_random_addr
	movq	_ETH_P_IP@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_htons
	movq	%rax, (%rbx)
	movl	(%r13), %edi
	callq	_htons
	movq	%rax, 8(%r12)
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_skb_set_network_header
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_in_aton
	movq	%rax, 48(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_in_aton
	movq	%rax, 40(%rbx)
	movabsq	$21474836484, %rax              ## imm = 0x500000004
	movq	%rax, (%rbx)
	movq	$0, 32(%rbx)
	movl	%r15d, %edi
	callq	_htons
	movq	%rax, 24(%rbx)
	movl	$100, 8(%rbx)
	movq	$0, 16(%rbx)
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ip_fast_csum
	movq	%rax, 16(%rbx)
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_skb_set_transport_header
	addl	$16, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_put_zero
	movq	%rax, %rbx
	leaq	12(%rax), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	leaq	8(%rbx), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	movl	%r14d, %edi
	callq	_htons
	movq	%rax, (%rbx)
LBB0_2:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSIM_TRAP_L4_DATA_LEN,4,2      ## @NSIM_TRAP_L4_DATA_LEN
	.comm	_NLMSG_GOODSIZE,4,2             ## @NLMSG_GOODSIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"192.0.2.1"

L_.str.1:                               ## @.str.1
	.asciz	"198.51.100.1"

	.no_dead_strip	_nsim_dev_trap_skb_build
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_dev_trap_skb_build
_nsim_dev_trap_skb_build:               ; @nsim_dev_trap_skb_build
	.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
Lloh0:
	adrp	x8, _NSIM_TRAP_L4_DATA_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSIM_TRAP_L4_DATA_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _NLMSG_GOODSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NLMSG_GOODSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_alloc_skb
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	w20, w22, #80
	mov	x0, x19
	bl	_skb_reset_mac_header
	mov	x0, x19
	mov	w1, #16
	bl	_skb_put
	mov	x21, x0
	ldr	w0, [x0, #12]
	bl	_eth_random_addr
	ldr	w0, [x21, #8]
	bl	_eth_random_addr
Lloh9:
	adrp	x23, _ETH_P_IP@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ETH_P_IP@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_htons
	str	x0, [x21]
	ldr	w0, [x23]
	bl	_htons
	str	x0, [x19, #8]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_skb_set_network_header
	mov	x0, x19
	mov	w1, #64
	bl	_skb_put
	mov	x21, x0
Lloh11:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_in_aton
	str	x0, [x21, #48]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_in_aton
	mov	x8, #4
	movk	x8, #5, lsl #32
	str	x8, [x21]
	stp	xzr, x0, [x21, #32]
	mov	x0, x20
	bl	_htons
	mov	w8, #100
	str	w8, [x21, #8]
	stp	xzr, x0, [x21, #16]
	ldr	w1, [x21, #4]
	mov	x0, x21
	bl	_ip_fast_csum
	str	x0, [x21, #16]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_skb_set_transport_header
	add	w20, w22, #16
	mov	x0, x19
	mov	x1, x20
	bl	_skb_put_zero
	mov	x21, x0
	add	x0, x0, #12
	mov	w1, #4
	bl	_get_random_bytes
	add	x0, x21, #8
	mov	w1, #4
	bl	_get_random_bytes
	mov	x0, x20
	bl	_htons
	str	x0, [x21]
LBB0_2:
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NSIM_TRAP_L4_DATA_LEN,4,2      ; @NSIM_TRAP_L4_DATA_LEN
	.comm	_NLMSG_GOODSIZE,4,2             ; @NLMSG_GOODSIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"192.0.2.1"

l_.str.1:                               ; @.str.1
	.asciz	"198.51.100.1"

	.no_dead_strip	_nsim_dev_trap_skb_build
.subsections_via_symbols
