	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_ud_header_init              ## -- Begin function ib_ud_header_init
	.p2align	4, 0x90
_ib_ud_header_init:                     ## @ib_ud_header_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %rbx
	movl	16(%rbp), %eax
	movq	_IB_UDP_BYTES@GOTPCREL(%rip), %rcx
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rcx), %r12d
LBB0_2:
	testl	%r8d, %r8d
	setne	%r14b
	testl	%r15d, %r15d
	sete	%r13b
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$136, %edx
	callq	_memset
	movl	%r15d, %eax
	andl	$-3, %eax
	cmpl	$4, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$0, 16(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_5:
	andb	%r13b, %r14b
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	$0, 128(%rbx)
	movq	_IB_LNH_IBA_LOCAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testb	%r14b, %r14b
	cmovneq	_IB_LNH_IBA_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movq	_IB_LRH_BYTES@GOTPCREL(%rip), %rax
	movq	_IB_BTH_BYTES@GOTPCREL(%rip), %rdx
	movq	_IB_DETH_BYTES@GOTPCREL(%rip), %rsi
	movq	_IB_GRH_BYTES@GOTPCREL(%rip), %rdi
	cmovnel	(%rdi), %ecx
	movl	(%rax), %eax
	addl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	addl	(%rdx), %eax
	addl	(%rsi), %eax
	leal	(%rcx,%rax), %edx
	addl	$7, %edx
	leal	(%rcx,%rax), %edi
	addl	$10, %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	sarl	$2, %edi
	callq	_cpu_to_be16
	movq	%rax, 112(%rbx)
LBB0_7:
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 104(%rbx)
LBB0_9:
	cmpl	$6, %r15d
	sete	%al
	orb	%r14b, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	cmpb	$1, %al
	jne	LBB0_13
## %bb.10:
	movl	$6, 88(%rbx)
	movq	_IB_BTH_BYTES@GOTPCREL(%rip), %rax
	movq	_IB_DETH_BYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%r12d, %edx
	addl	(%rax), %edx
	leal	(%rcx,%rdx), %edi
	addl	$7, %edi
	andl	$-4, %edi
	callq	_cpu_to_be16
	movq	%rax, 96(%rbx)
	movl	$27, %eax
	cmpl	$0, 16(%rbp)
	je	LBB0_12
## %bb.11:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movl	%eax, 92(%rbx)
LBB0_13:
	cmpl	$4, %r15d
	jne	LBB0_15
## %bb.14:
	movabsq	$21474836484, %rax              ## imm = 0x500000004
	movq	%rax, 64(%rbx)
	movq	_IB_IP4_BYTES@GOTPCREL(%rip), %rax
	movq	_IB_BTH_BYTES@GOTPCREL(%rip), %rcx
	movq	_IB_DETH_BYTES@GOTPCREL(%rip), %rdx
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	addl	(%rax), %r12d
	movl	(%rdx), %eax
	addl	(%rcx), %r12d
	leal	(%rax,%r12), %edi
	addl	$4, %edi
	callq	_cpu_to_be16
	movq	%rax, 80(%rbx)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
LBB0_15:
	movl	24(%rbp), %r14d
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.16:
	cmpl	$0, 16(%rbp)
	je	LBB0_18
## %bb.17:
	movq	_IB_BTH_BYTES@GOTPCREL(%rip), %rax
	movq	_IB_DETH_BYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IB_UDP_BYTES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	-56(%rbp), %edx                 ## 4-byte Folded Reload
	addl	(%rax), %edx
	leal	(%rcx,%rdx), %edi
	addl	$4, %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%rbx)
LBB0_18:
	xorl	%eax, %eax
	cmpl	$4, %r15d
	sete	%cl
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.20:
	movq	_IB_OPCODE_UD_SEND_ONLY@GOTPCREL(%rip), %rdx
	jmp	LBB0_21
LBB0_19:
	movq	_IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE@GOTPCREL(%rip), %rdx
LBB0_21:
	movl	(%rdx), %edx
	movl	%edx, 48(%rbx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	negl	%edx
	andl	$3, %edx
	movl	%edx, 32(%rbx)
	movq	$0, 40(%rbx)
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rbx)
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%rbx)
	movl	%r13d, 8(%rbx)
	movzbl	-41(%rbp), %edx                 ## 1-byte Folded Reload
	movl	%edx, 12(%rbx)
	movb	%cl, %al
	movl	%eax, 16(%rbx)
	movl	16(%rbp), %eax
	movl	%eax, 20(%rbx)
	movl	%r14d, 24(%rbx)
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_UDP_BYTES,4,2               ## @IB_UDP_BYTES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_LNH_IBA_GLOBAL,4,2          ## @IB_LNH_IBA_GLOBAL
	.comm	_IB_LNH_IBA_LOCAL,4,2           ## @IB_LNH_IBA_LOCAL
	.comm	_IB_LRH_BYTES,4,2               ## @IB_LRH_BYTES
	.comm	_IB_BTH_BYTES,4,2               ## @IB_BTH_BYTES
	.comm	_IB_DETH_BYTES,4,2              ## @IB_DETH_BYTES
	.comm	_IB_GRH_BYTES,4,2               ## @IB_GRH_BYTES
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_IB_IP4_BYTES,8,3               ## @IB_IP4_BYTES
	.comm	_IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE,4,2 ## @IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE
	.comm	_IB_OPCODE_UD_SEND_ONLY,4,2     ## @IB_OPCODE_UD_SEND_ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ib_ud_header_init
lCPI0_0:
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ib_ud_header_init
	.p2align	2
_ib_ud_header_init:                     ; @ib_ud_header_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x26, x5
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x22, [x29, #16]
Lloh0:
	adrp	x8, _IB_UDP_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_UDP_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w6, #0
	csel	w28, w8, wzr, ne
	cmp	w4, #0
	ccmp	w5, #0, #0, ne
	cset	w27, eq
	mov	x0, x22
	mov	w1, #0
	mov	w2, #136
	bl	_memset
	and	w8, w26, #0xfffffffd
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.1:
	cbz	w20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_3:
Lloh6:
	adrp	x11, _IB_BTH_BYTES@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IB_BTH_BYTES@GOTPAGEOFF]
Lloh8:
	adrp	x12, _IB_DETH_BYTES@GOTPAGE
Lloh9:
	ldr	x12, [x12, _IB_DETH_BYTES@GOTPAGEOFF]
	cbz	w24, LBB0_5
; %bb.4:
	str	xzr, [x22, #128]
Lloh10:
	adrp	x8, _IB_LNH_IBA_GLOBAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_LNH_IBA_GLOBAL@GOTPAGEOFF]
Lloh12:
	adrp	x9, _IB_LNH_IBA_LOCAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_LNH_IBA_LOCAL@GOTPAGEOFF]
Lloh14:
	adrp	x10, _IB_GRH_BYTES@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_GRH_BYTES@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w27, #0
	csel	w10, w10, wzr, ne
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	str	w8, [x22, #120]
Lloh17:
	adrp	x8, _IB_LRH_BYTES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_LRH_BYTES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x11]
	ldr	w11, [x12]
	add	w8, w25, w8
	add	w8, w8, w9
	add	w8, w8, w11
	add	w8, w8, w10
	add	w9, w8, #7
	add	w8, w8, #10
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w0, w8, #2
	bl	_cpu_to_be16
Lloh20:
	adrp	x12, _IB_DETH_BYTES@GOTPAGE
Lloh21:
	ldr	x12, [x12, _IB_DETH_BYTES@GOTPAGEOFF]
Lloh22:
	adrp	x11, _IB_BTH_BYTES@GOTPAGE
Lloh23:
	ldr	x11, [x11, _IB_BTH_BYTES@GOTPAGEOFF]
	str	x0, [x22, #112]
LBB0_5:
	cbz	w21, LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_cpu_to_be16
Lloh27:
	adrp	x12, _IB_DETH_BYTES@GOTPAGE
Lloh28:
	ldr	x12, [x12, _IB_DETH_BYTES@GOTPAGEOFF]
Lloh29:
	adrp	x11, _IB_BTH_BYTES@GOTPAGE
Lloh30:
	ldr	x11, [x11, _IB_BTH_BYTES@GOTPAGEOFF]
	str	x0, [x22, #104]
LBB0_7:
	cmp	w26, #6
	cset	w8, eq
	orr	w27, w8, w27
	cmp	w27, #1
	b.eq	LBB0_10
; %bb.8:
	cmp	w26, #4
	b.eq	LBB0_11
LBB0_9:
	cbnz	w26, LBB0_12
	b	LBB0_14
LBB0_10:
	mov	w8, #6
	str	w8, [x22, #88]
	ldr	w8, [x11]
	ldr	w9, [x12]
	add	w10, w25, w28
	add	w8, w10, w8
	add	w8, w8, w9
	add	w8, w8, #7
	and	w0, w8, #0xfffffffc
	bl	_cpu_to_be16
Lloh31:
	adrp	x12, _IB_DETH_BYTES@GOTPAGE
Lloh32:
	ldr	x12, [x12, _IB_DETH_BYTES@GOTPAGEOFF]
Lloh33:
	adrp	x11, _IB_BTH_BYTES@GOTPAGE
Lloh34:
	ldr	x11, [x11, _IB_BTH_BYTES@GOTPAGEOFF]
	str	x0, [x22, #96]
Lloh35:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	mov	w9, #27
	cmp	w20, #0
	csel	w8, w8, w9, ne
	str	w8, [x22, #92]
	cmp	w26, #4
	b.ne	LBB0_9
LBB0_11:
Lloh38:
	adrp	x8, lCPI0_0@PAGE
Lloh39:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22, #64]
Lloh40:
	adrp	x8, _IB_IP4_BYTES@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IB_IP4_BYTES@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x11]
	ldr	w10, [x12]
	add	w11, w25, w28
	add	w8, w11, w8
	add	w8, w8, w9
	add	w8, w8, w10
	add	w0, w8, #4
	bl	_cpu_to_be16
Lloh43:
	adrp	x12, _IB_DETH_BYTES@GOTPAGE
Lloh44:
	ldr	x12, [x12, _IB_DETH_BYTES@GOTPAGEOFF]
Lloh45:
	adrp	x11, _IB_BTH_BYTES@GOTPAGE
Lloh46:
	ldr	x11, [x11, _IB_BTH_BYTES@GOTPAGEOFF]
	str	x0, [x22, #80]
Lloh47:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x22, #72]
	cbz	w26, LBB0_14
LBB0_12:
	cbz	w20, LBB0_14
; %bb.13:
Lloh50:
	adrp	x8, _IB_UDP_BYTES@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IB_UDP_BYTES@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x11]
	ldr	w10, [x12]
	add	w8, w25, w8
	add	w8, w8, w9
	add	w8, w8, w10
	add	w0, w8, #4
	bl	_cpu_to_be16
	str	x0, [x22, #56]
LBB0_14:
	mov	w0, #0
	cmp	w26, #4
Lloh53:
	adrp	x8, _IB_OPCODE_UD_SEND_ONLY@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IB_OPCODE_UD_SEND_ONLY@GOTPAGEOFF]
	cset	w9, eq
Lloh55:
	adrp	x10, _IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x22, #48]
	neg	w8, w25
	and	w8, w8, #0x3
	str	w8, [x22, #32]
	str	xzr, [x22, #40]
	stp	w24, w23, [x22]
	stp	w21, w27, [x22, #8]
	stp	w9, w20, [x22, #16]
	str	w19, [x22, #24]
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdrp	Lloh38, Lloh40
	.loh AdrpLdr	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_UDP_BYTES,4,2               ; @IB_UDP_BYTES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_LNH_IBA_GLOBAL,4,2          ; @IB_LNH_IBA_GLOBAL
	.comm	_IB_LNH_IBA_LOCAL,4,2           ; @IB_LNH_IBA_LOCAL
	.comm	_IB_LRH_BYTES,4,2               ; @IB_LRH_BYTES
	.comm	_IB_BTH_BYTES,4,2               ; @IB_BTH_BYTES
	.comm	_IB_DETH_BYTES,4,2              ; @IB_DETH_BYTES
	.comm	_IB_GRH_BYTES,4,2               ; @IB_GRH_BYTES
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_IB_IP4_BYTES,8,3               ; @IB_IP4_BYTES
	.comm	_IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE,4,2 ; @IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE
	.comm	_IB_OPCODE_UD_SEND_ONLY,4,2     ; @IB_OPCODE_UD_SEND_ONLY
.subsections_via_symbols
