	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pkt_bth_psn
_set_pkt_bth_psn:                       ## @set_pkt_bth_psn
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_be32_to_cpu
	movl	%eax, %r14d
	movq	_EXTENDED_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HFI1_CAP_IS_KSET
	testq	%rax, %rax
	movl	$16777215, %ecx                 ## imm = 0xFFFFFF
	movl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	cmovel	%ecx, %eax
	andl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_HFI1_KDETH_BTH_SEQ_MASK@GOTPCREL(%rip), %rcx
	addl	%r14d, %ebx
	xorl	%r14d, %ebx
	andl	(%rcx), %ebx
	xorl	%r14d, %ebx
	jmp	LBB0_3
LBB0_2:
	addl	%r14d, %ebx
LBB0_3:
	andl	%eax, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTENDED_PSN,4,2               ## @EXTENDED_PSN
	.comm	_HFI1_KDETH_BTH_SEQ_MASK,4,2    ## @HFI1_KDETH_BTH_SEQ_MASK
	.no_dead_strip	_set_pkt_bth_psn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pkt_bth_psn
_set_pkt_bth_psn:                       ; @set_pkt_bth_psn
	.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, x2
	mov	x20, x1
	bl	_be32_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _EXTENDED_PSN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXTENDED_PSN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_HFI1_CAP_IS_KSET
	cmp	x0, #0
	mov	w8, #2147483647
	mov	w9, #16777215
	csel	w8, w9, w8, eq
	and	w9, w8, w21
	cbz	x20, LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, _HFI1_KDETH_BTH_SEQ_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HFI1_KDETH_BTH_SEQ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	bic	w11, w9, w10
	add	w9, w9, w19
	and	w9, w10, w9
	orr	w9, w11, w9
	b	LBB0_3
LBB0_2:
	add	w9, w9, w19
LBB0_3:
	and	w0, w9, w8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTENDED_PSN,4,2               ; @EXTENDED_PSN
	.comm	_HFI1_KDETH_BTH_SEQ_MASK,4,2    ; @HFI1_KDETH_BTH_SEQ_MASK
	.no_dead_strip	_set_pkt_bth_psn
.subsections_via_symbols
