	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_ud_header_unpack            ## -- Begin function ib_ud_header_unpack
	.p2align	4, 0x90
_ib_ud_header_unpack:                   ## @ib_ud_header_unpack
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_lrh_table@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	leaq	80(%r15), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_ib_unpack
	movq	80(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_3:
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IB_LRH_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r14
	movl	88(%r15), %esi
	cmpl	$131, %esi
	je	LBB0_9
## %bb.5:
	cmpl	$130, %esi
	jne	LBB0_14
## %bb.6:
	movl	$0, (%r15)
LBB0_7:
	movq	_bth_table@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	leaq	48(%r15), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_ib_unpack
	movq	_IB_BTH_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	68(%r15), %esi
	cmpl	$129, %esi
	je	LBB0_8
## %bb.15:
	cmpl	$128, %esi
	jne	LBB0_22
## %bb.16:
	movl	$1, %ecx
	jmp	LBB0_17
LBB0_9:
	movl	$1, (%r15)
	movq	_grh_table@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	leaq	112(%r15), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_ib_unpack
	movl	124(%r15), %esi
	cmpl	$6, %esi
	jne	LBB0_10
## %bb.11:
	movl	128(%r15), %esi
	cmpl	$27, %esi
	jne	LBB0_13
## %bb.12:
	movq	_IB_GRH_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r14
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	xorl	%ecx, %ecx
LBB0_17:
	movl	%ecx, 4(%r15)
	movq	72(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_22:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_3
LBB0_19:
	addq	%rax, %r14
	movq	_deth_table@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	leaq	16(%r15), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_ib_unpack
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r15)
	je	LBB0_21
## %bb.20:
	movq	_IB_DETH_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r14
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_21
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_lrh_table,4,2                  ## @lrh_table
	.comm	_IB_LRH_BYTES,4,2               ## @IB_LRH_BYTES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid LRH.link_version %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_grh_table,4,2                  ## @grh_table
	.comm	_IB_GRH_BYTES,4,2               ## @IB_GRH_BYTES
L_.str.1:                               ## @.str.1
	.asciz	"Invalid GRH.ip_version %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid GRH.next_header 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid LRH.link_next_header %d\n"

	.comm	_bth_table,4,2                  ## @bth_table
	.comm	_IB_BTH_BYTES,4,2               ## @IB_BTH_BYTES
L_.str.4:                               ## @.str.4
	.asciz	"Invalid BTH.opcode 0x%02x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid BTH.transport_header_version %d\n"

	.comm	_deth_table,4,2                 ## @deth_table
	.comm	_IB_DETH_BYTES,4,2              ## @IB_DETH_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_ud_header_unpack            ; -- Begin function ib_ud_header_unpack
	.p2align	2
_ib_ud_header_unpack:                   ; @ib_ud_header_unpack
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _lrh_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lrh_table@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x3, x19, #80
	mov	x0, x21
	mov	x2, x20
	bl	_ib_unpack
	ldr	x1, [x19, #80]
	cbz	x1, LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_3:
	bl	_pr_warn
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x8, _IB_LRH_BYTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_LRH_BYTES@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x20, x20, x8
	ldr	w1, [x19, #88]
	cmp	w1, #131
	b.eq	LBB0_11
; %bb.6:
	cmp	w1, #130
	b.ne	LBB0_14
; %bb.7:
	str	wzr, [x19]
LBB0_8:
Lloh11:
	adrp	x8, _bth_table@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bth_table@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x3, x19, #48
	mov	x0, x21
	mov	x2, x20
	bl	_ib_unpack
Lloh14:
	adrp	x8, _IB_BTH_BYTES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_BTH_BYTES@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	ldr	w1, [x19, #68]
	cmp	w1, #129
	b.eq	LBB0_16
; %bb.9:
	cmp	w1, #128
	b.ne	LBB0_19
; %bb.10:
	mov	w9, #1
	b	LBB0_17
LBB0_11:
	mov	w8, #1
	str	w8, [x19]
Lloh17:
	adrp	x8, _grh_table@GOTPAGE
Lloh18:
	ldr	x8, [x8, _grh_table@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x3, x19, #112
	mov	x0, x21
	mov	x2, x20
	bl	_ib_unpack
	ldr	w1, [x19, #124]
	cmp	w1, #6
	b.ne	LBB0_15
; %bb.12:
	ldr	w1, [x19, #128]
	cmp	w1, #27
	b.ne	LBB0_23
; %bb.13:
Lloh20:
	adrp	x8, _IB_GRH_BYTES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_GRH_BYTES@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	add	x20, x20, x8
	b	LBB0_8
LBB0_14:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_15:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_16:
	mov	w9, #0
LBB0_17:
	str	w9, [x19, #4]
	ldr	x1, [x19, #72]
	cbz	x1, LBB0_20
; %bb.18:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_19:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_20:
	add	x20, x20, x8
Lloh31:
	adrp	x8, _deth_table@GOTPAGE
Lloh32:
	ldr	x8, [x8, _deth_table@GOTPAGEOFF]
Lloh33:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x3, x19, #16
	mov	x0, x21
	mov	x2, x20
	bl	_ib_unpack
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_22
; %bb.21:
Lloh34:
	adrp	x8, _IB_DETH_BYTES@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IB_DETH_BYTES@GOTPAGEOFF]
Lloh36:
	ldrsw	x8, [x8]
	add	x1, x20, x8
	add	x0, x19, #8
	mov	w2, #4
	bl	_memcpy
LBB0_22:
	mov	w0, #0
	b	LBB0_4
LBB0_23:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_lrh_table,4,2                  ; @lrh_table
	.comm	_IB_LRH_BYTES,4,2               ; @IB_LRH_BYTES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid LRH.link_version %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_grh_table,4,2                  ; @grh_table
	.comm	_IB_GRH_BYTES,4,2               ; @IB_GRH_BYTES
l_.str.1:                               ; @.str.1
	.asciz	"Invalid GRH.ip_version %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid GRH.next_header 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid LRH.link_next_header %d\n"

	.comm	_bth_table,4,2                  ; @bth_table
	.comm	_IB_BTH_BYTES,4,2               ; @IB_BTH_BYTES
l_.str.4:                               ; @.str.4
	.asciz	"Invalid BTH.opcode 0x%02x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid BTH.transport_header_version %d\n"

	.comm	_deth_table,4,2                 ; @deth_table
	.comm	_IB_DETH_BYTES,4,2              ; @IB_DETH_BYTES
.subsections_via_symbols
